mhmda Posted January 20, 2016 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
Abaksoft Posted January 21, 2016 Posted January 21, 2016 Thx Mohammad I will test it... Greetings Quote
BYGraham Posted January 26, 2017 Posted January 26, 2017 Works beautifully, nice and fast. Thx! Quote
lcolombo Posted July 17, 2017 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
Sherzod Posted July 18, 2017 Posted July 18, 2017 Hi, I do not have the event Ext.data.Store -> store.afterCreate Best regards, Quote
lcolombo Posted July 18, 2017 Posted July 18, 2017 Thank you very much. I was looking at ExtEvents and was in UniEvents Regards, Quote
alp.yilmaz Posted September 22, 2017 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
M477H13U Posted October 10, 2017 Posted October 10, 2017 Hello there !! (: It works perfectly, but what about multiColumnSorting ? :3 Quote
delagoutte Posted October 10, 2017 Posted October 10, 2017 M477H13Utry add in beforeinit : config.multiColumnSort = true; Quote
M477H13U Posted October 10, 2017 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
jinhu Posted January 3, 2018 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
Sherzod Posted January 3, 2018 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
MOGSY Posted January 8, 2018 Posted January 8, 2018 I am using version 1 and the Store events are different, what version Mohammad is using? Quote
Sherzod Posted January 8, 2018 Posted January 8, 2018 Hi, Which build are you using, and what is your problem ?! Best regards, Quote
eduardosuruagy Posted July 23, 2018 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
Sherzod Posted August 8, 2018 Posted August 8, 2018 Hi, Try this: function store.afterCreate(sender) { sender.setRemoteSort(false); } Quote
M477H13U Posted August 8, 2018 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
eduardosuruagy Posted August 9, 2018 Posted August 9, 2018 Hi, Try this: function store.afterCreate(sender) { sender.setRemoteSort(false); } Thank you, it worked. Quote
M477H13U Posted September 17, 2018 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
M477H13U Posted September 17, 2018 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
Sherzod Posted September 17, 2018 Posted September 17, 2018 Please make a simple testcase for better understanding, thanks Quote
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.