Jump to content

UniDBtreegrid "order" and upper/lower case


erich.wanker

Recommended Posts

Hi,

i use this to order the items of a UniDBTreegrid

function store.load(sender, node, records, successful, eOpts)
{
    var me=sender;
    me.remoteSort=false;
    me.sort({property:0, direction:"ASC"});
    me.grid.getSelectionModel().select(0);   
}

 

but it shows me first all words beginning with upper case ordered by A-Z 

then it shows me all words beginning with lower case ordered by a-z

 

It should sort it like standard SQL order-command

 

the left uniDBGrid shows the correct sort order - the right uniDBTreeGrid should show the same order:

treegrid.jpeg.aa9e70454a17eaf1efb2246dea747468.jpeg

 

 

Link to comment
Share on other sites

Hello Sherzod,

i found a solution 🙂

a transformer to lower case solved my problem

 

function store.load(sender, records, successful, operation, eOpts)
{
      var me=sender;
    me.remoteSort=false;
    me.sort({property:0, transform: function(item) {
                    return item.toLowerCase();
                }, direction:"ASC"});
    me.grid.getSelectionModel().select(0); 
}

 

ThanX

 

Erich

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...