Jump to content

stas

uniGUI Subscriber
  • Posts

    489
  • Joined

  • Last visited

  • Days Won

    37

Posts posted by stas

  1. Hi,

     

    1. Sort only on the current page 
    

     

    I test is and sort work on all pages ! Probably you test sort on a numeric column filed ! In the dbgrid it seem Mr. Farshad add all field in the string type. in this mode sort on numeric columns not work correctly.

    if you have 100, 20, 300, 50

    must be sort 20, 50, 100, 300

    but in string mode sort is : 100, 20, 300, 50 !!!!

     

    2. Clicks after the changes after the SQL query, the sort failure
    

     

    This sort is client side, not in Server side. for server side maybe server performance down if you have many many record in your table.

    Certainty you not have index or key on all fields ! then sort on server side slower then client side.

     

     

    Best Regards

    Hi

    //Please replace

    Self.ExtGridPanel.JSCode('for(i=1;i<' + Self.ExtGridPanel.GetId.JSName+'.colModel.columns.length;i++){' + Self.ExtGridPanel.GetId.JSName+'.colModel.columns.sortable=' + S + ';};');

    // This Code

    Self.ExtGridPanel.On('reconfigure',ExtGridPanel.JSFunction('sender, store, colModel',

    'for(i=1;i<colModel.columns.length;i++) '#13#10+

    '{ '#13#10+

    ' colModel.columns.sortable='+S+'; '#13#10+

    '}'

    ))

    //because after dataset reopen , sortable don't works

  2. Hello

    I want to make a resizable panel.

    Tell me please. Where should I put extra code ?

    //

    procedure TUniResizePanel.Loaded;

    begin

    Inherited;

    If WebMode Then

    Begin

    //

    ExtPanel.JSCode('',

     

    ' var tg=this; '+

    ' this.resizer = new Ext.Resizable(this.el, {'+

    ' minHeight:100,'+

    ' minWidth:100, '+

    ' pinned: true,'+

    ' transparent:false, '+

    ' animate:true, '+

    ' easing: "backIn", '+

    ' duration:.6,'+

    ' resizeElement : function()'+

    ' { '+

    ' var box = this.proxy.getBox(); '+

    ' this.proxy.hide(); '+

    ' tg.autoHeight = false; '+

    ' tg.updateBox(box); '+

    ' return box; '+

    ' } '+

    '}); '

     

    Thank you

×
×
  • Create New...