Jump to content

jaosobne

uniGUI Subscriber
  • Posts

    25
  • Joined

  • Last visited

Posts posted by jaosobne

  1. Hi ,

    I have event on ColumnActionClick in grid to show window

    in the onaftershow event of this window is executed this code which needs 10s to be finished  

    procedure TShowURL.getDCL(sn:string);
    var url,filename:string;
    begin
      if (not sn.IsEmpty) then
        begin
        Caption:=sn;
        uniURL.ShowMask('Connecting ...');
    
        UniSession.Synchronize;
          if smartdata.esmartConnect then
          begin
            uniURL.ShowMask('Dowloading ...');
            UniSession.Synchronize;
            smartdata.checkDCL(sn);
            smartdata.getLastComm(sn);
            smartdata.AHTTPResponseStream.Position:=0;
            url := UniServerModule.LocalCacheURL+sn+'.html';
            filename := UniServerModule.NewCacheFileUrl(false, '.html', sn, '', url);
            smartdata.AHTTPResponseStream.SaveToFile(filename);
            uniURL.HideMask;
            UniURL.URL:=url;
          end;
        end;
    end;

    the window is shown but any mask isn't shown while procedure is executing.

    the caption is not changed too.

  2. Hi, yes it is possible that we need server side sorting with pagination because in store we have only records that are currently paged .

    I show only filtered records, it's intranet app and client side sorting is more quicklier than server side sorting.

    Is there some issue that we can't have set column type to date type at time of table creation ?    

  3. Hi Sherzod ,

    I don't want to use server side sorting because it is slowe then client side .

    Best should be if you can set correct field type at grid create time to xtype datefield and not textfield.

    here is dump from console :

    MainForm.grid.getColumnManager().columns[4].editor
    {xtype: "textfield", uform: constructor, focusDisabled: true, isCellEditor: true}

    and JS Code from index

    O5D = new Ext.grid.column.Column({
                            ogrid: O13,
                            sortable: false,
                            dataIndex: "4",
                            renderer: _rndcll_,
                            rdonly: false,
                            text: "HireDate",
                            cf: "**j.n.Y",
                            ct: "datetime",
                            width: 112,
                            editor: {
                                xtype: "textfield"
                            }
                        });

    please check it in the test case , first column "Hire date" doesn't have editor and second has unidatetimepicker as editor and working correctly.

    Project1.zip

  4. hi guys, problem is in that the column is set to text field and JS sorts it as text not as date type. If we define editor property of that column as datetimepicker then that column has xform property as some date type if i remember it correctly and sorting on client side works properly.

    It doesn’t depends on sql server , i’m using mysql and testcase is on clientdataset.

    I can make some dumps from debuger when i will be at pc..

  5. Hi ,

    I have simple form with checkbox and edit.

    image.png.3e21356ad096fadbd2e39a5d63e2f197.png

    While I moving on form by mouse clicking it works correctly , but with tab key unicheckbox doesn't blur after losing focus and looks like it has focus

    image.png.c2fa64a04e8aee38fb727181b33fdeb0.png

    I can do this by add listener to that checkbox with unievent like that

    function afterCreate(sender)
    {
      sender.addListener('blur', function(){
      this.displayEl.removeCls('x-form-checkbox-focus')
      });
    }

    My question is if it can be done once by some Ext.form.field.Checkbox.prototype for whole application or it is a bug ?

    I don't want to add this for each checkbox that i have in application.

    Thanks   

     

  6. Hi,

    Client side sorting on date column doesn't work properly .

    Date is sorted like text not by date if uniDBGrid is set as read only.

    And sorting only work if the column have uniDateTimePicker as editor and is set ReadOnly to false.

    Can I set some JS to set that column to date type and get client side sorting to work properly ???  

    Thanks

     

  7. Thank You, I'll try it.

    I found an issue for that i need to manualy send focus to the first field.

    When the grid is set to edit with uni_sencha theme then row editor doesn't gets focus .

    With other theme for example uni_win10 the row editor gets focus and work as it should.

    There is some bug in sencha theme ..

  8. Hi , 

    I have this code on activecolumn to show roweditor and set focus to the first field .

    unisession.AddJS(Grid.JSName+'.getPlugin().startEdit('+Grid.CurrRow.ToString+',0); ');
    unisession.AddJS(Grid.JSName+'.getPlugin().editor.focus();')  ;

    Row editor is shown but it doesn't set focus to the first field.

    If I execute second command with uniTimer then it gets focus .

    If I want to insert a new record on the first row then I must do it in 3 steps:

    1, move to first record 

    2, timer event to insert record 

    3, and then timer event to send focus to the first field of roweditor

    Is there a easier way to execute scripts without timers ?

     

  9. Hi,

    If I have a unidbgrid on form that is shown modal and i click on the button at actioncolumn that have set hint property then this modalform looses activated property for a while and then it gets back.

    The button have to set Dataset.edit and unigrid show roweditor and it not happend everytime . If a click to fast or before hint is shown it sets dataset to edit but grid doesn't show roweditor.

    I can see events in that order if row editor is not shown :

    1. Obj:O39
    2. Evt: actionclick
    3. columnIndex: 6
    4. buttonId: 0
    1. Obj:O26
    2. Evt: deactivate
    1. Obj:O26
    2. Evt: activate

    I can see events in that order if row editor is  shown :

    1. Obj: O26
    2. Evt deactivate
    1. Obj:O39
    2. Evt:actionclick
    3. columnIndex:6
    4. buttonId:0
    1. Obj:O26
    2. Evt:activate
    1. Obj:O39
    2. Evt:beforeedit
     
     
    This is happend only if a grid is modalshown and have on actioncolumn buttons setted hints !!!

    Grid - ActionColumn.zip

  10. Hi,

    I set this to unitimer event and it hides menu , but i don't know how long , because that menu container is created dynamically and it changes his ID. It should be better target his ID than class tags .   

    unisession.AddJS('{var menu = Ext.ComponentQuery.query("container[cls=x-treelist x-unselectable x-treelist-nav x-treelist-floater]");if (menu.length >0) {Ext.get(menu[0].id).hide();}}');
     

×
×
  • Create New...