PDA

View Full Version : Remote and Local Sort Columns in Grid



chichasonu
25 Nov 2015, 7:21 PM
Hi,
I am using Gird with pagination. I am able to sort to columns remotely.But i don't need all columns to sort remotely.Is their any way to configure some columns to sort remotely and some to sort locally.

Thanks in Advance

jdkhamba
26 Nov 2015, 7:38 AM
Out of the box I am not aware of any such feature as the remoteSort:true is being set on the store that is bound to the grid. Theoretically you could listen sort change event:

http://docs.sencha.com/extjs/4.2.0/#!/api/Ext.grid.Panel-event-sortchange

and set the remoteSort on the store to false when the column used for sorting needs to be sorted locally and switch back to remoteSort when remote sort is needed but it could be a long shot.

joel.watson
26 Nov 2015, 1:40 PM
Hi--

Out of the box, there is no way to do this. You would have to add some custom logic to determine whether or not a column should be locally or remotely filtered, and update the store accordingly.

Thanks!
Joel