erich.wanker Posted January 25, 2023 Share Posted January 25, 2023 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: Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 25, 2023 Share Posted January 25, 2023 Hi @erich.wanker Testcase? Quote Link to comment Share on other sites More sharing options...
erich.wanker Posted January 30, 2023 Author Share Posted January 30, 2023 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 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 30, 2023 Share Posted January 30, 2023 Hello Erich, Okay, very good. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.