mhmda Posted January 20, 2016 Share Posted January 20, 2016 Hi, As default behavior of dbgrid is performing sorting in server side, but sometimes you fetch all data into grid (no paging) and the data is already in client, so why return to server to sort data !! Do the sort in client side: 1. Disable remoteSort (store): 2. Set 'click' event on column header and do sorting: Hope this will help you :-) 1 4 Quote Link to comment Share on other sites More sharing options...
Abaksoft Posted January 21, 2016 Share Posted January 21, 2016 Thx Mohammad I will test it... Greetings Quote Link to comment Share on other sites More sharing options...
BYGraham Posted January 26, 2017 Share Posted January 26, 2017 Works beautifully, nice and fast. Thx! Quote Link to comment Share on other sites More sharing options...
lcolombo Posted July 17, 2017 Share Posted July 17, 2017 I do not have the event Ext.data.Store -> store.afterCreate I tried to put the event Ext.grid.Panle -> headerclick but it did not work. any ideas? Regards, Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 18, 2017 Share Posted July 18, 2017 Hi, I do not have the event Ext.data.Store -> store.afterCreate Best regards, Quote Link to comment Share on other sites More sharing options...
lcolombo Posted July 18, 2017 Share Posted July 18, 2017 Thank you very much. I was looking at ExtEvents and was in UniEvents Regards, Quote Link to comment Share on other sites More sharing options...
alp.yilmaz Posted September 22, 2017 Share Posted September 22, 2017 Thank you...How to sort all the data in the grid.This process only sees the page you are on .. teşekkürler...Grid içerisindeki Tüm dataları nasıl sıralarız.Bu İşlem Sadece Bulunduğu Sayfayı Sıralıyor.. Quote Link to comment Share on other sites More sharing options...
M477H13U Posted October 10, 2017 Share Posted October 10, 2017 Hello there !! (: It works perfectly, but what about multiColumnSorting ? :3 Quote Link to comment Share on other sites More sharing options...
delagoutte Posted October 10, 2017 Share Posted October 10, 2017 M477H13Utry add in beforeinit : config.multiColumnSort = true; Quote Link to comment Share on other sites More sharing options...
M477H13U Posted October 10, 2017 Share Posted October 10, 2017 Super !! it works just fine ! (: Thank you very much delagoutte nb: My manager don't like Js, so I might use this solution in last resort, I'm going to answer to your other post Quote Link to comment Share on other sites More sharing options...
jinhu Posted January 3, 2018 Share Posted January 3, 2018 hi, I tried your code, but not successful. what is frmcaseview?do i need to change something with my dlphi component's name? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 3, 2018 Share Posted January 3, 2018 Hi, hi, I tried your code, but not successful. what is frmcaseview?do i need to change something with my dlphi component's name? Which edition and build are you using ?! Best regards, Quote Link to comment Share on other sites More sharing options...
MOGSY Posted January 8, 2018 Share Posted January 8, 2018 I am using version 1 and the Store events are different, what version Mohammad is using? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 8, 2018 Share Posted January 8, 2018 Hi, Which build are you using, and what is your problem ?! Best regards, Quote Link to comment Share on other sites More sharing options...
eduardosuruagy Posted July 23, 2018 Share Posted July 23, 2018 I have a problem in dbgrid, when I click on the column to sort LoadMask appears at the time of the click but it does not undo, with the screen stuck and the column does not sort. I'm using the option of our friend Mohammad. function headerclick (ct, column, e, t, eOpts) { Frame.dbgrid.getStore (). Sort (column.dataIndex); } function store.afterCreate (sender) { sender.remoteSort = false; } Quote Link to comment Share on other sites More sharing options...
eduardosuruagy Posted July 24, 2018 Share Posted July 24, 2018 an anyone help? Quote Link to comment Share on other sites More sharing options...
eduardosuruagy Posted August 7, 2018 Share Posted August 7, 2018 an anyone help? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted August 8, 2018 Share Posted August 8, 2018 Hi, Try this: function store.afterCreate(sender) { sender.setRemoteSort(false); } Quote Link to comment Share on other sites More sharing options...
mhmda Posted August 8, 2018 Author Share Posted August 8, 2018 Quote Link to comment Share on other sites More sharing options...
M477H13U Posted August 8, 2018 Share Posted August 8, 2018 Hello there ! (: You should try this out : UniSession.AddJS(UniDBGrid1.JSName+'.store.getSorters().add(new Ext.util.Sorter({property: 1,direction: "DESC"}));'); Quote Link to comment Share on other sites More sharing options...
eduardosuruagy Posted August 9, 2018 Share Posted August 9, 2018 Hi, Try this: function store.afterCreate(sender) { sender.setRemoteSort(false); } Thank you, it worked. Quote Link to comment Share on other sites More sharing options...
M477H13U Posted September 17, 2018 Share Posted September 17, 2018 Hello UniGUI users ! (: I have a question concerning sorting.. at the moment, I cancel a specific sort like that: UniSession.AddJS(uniDBGrid1.JSName + '.getStore().sorters.remove('+IntToStr(UniDBGrid1.CurrCol)+');'); UniSession.AddJS(UniDBGrid1.JSName+'.getView().refresh();'); If it's the only sort that was on the grid, the order of aggregats does not change. Then if I wants to apply the same sort on the same column, sorting is indeed visible on the interface, but event UniDBGrid1MultiColumnSort is not fired.. is this normal behavior ? What can I do to force the fire of this event ? (We have our own logic so it is unfortunate if event is not fired..) Regards, Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 17, 2018 Share Posted September 17, 2018 Hi, ? Quote Link to comment Share on other sites More sharing options...
M477H13U Posted September 17, 2018 Share Posted September 17, 2018 Hello Sherzod, Yeah I know this post, and yes my config.multiColumnSort is set to true. I think that this issue append when your datas are already sorted and that you sort request does not change it. In that case only, event multiColumnSort is not fired. Can you reproduce ? if not, I will make a testCase tomorrow! (I already tested it in a minimalist project). Regards, Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 17, 2018 Share Posted September 17, 2018 Please make a simple testcase for better understanding, thanks 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.