PDA

View Full Version : [CLOSED] Sorting gridpanel with Javascript



timiteh
Jan 21, 2014, 11:15 AM
Hi,

I would like to know how to sort a gridpanel with JavaScript.
I try with C# and Direct Event but i can manage to get from which column the sort eventhas been fired.
Thus i guess that i need to use Javascript to get the information.
To be concrete i try to sort some data coming from a database by pages and i need to know from which column the event has been fired !

Thanks

Daniil
Jan 21, 2014, 11:41 AM
Hi @timiteh,

It looks you are looking for remote sorting.
http://examples2.ext.net/#/GridPanel/Paging_and_Sorting/DirectMethod/

Sorting by column header click initiates a Store's load request with sorting parameters (the DataIndex of the clicked Column and the Direction of sorting).

timiteh
Jan 21, 2014, 4:21 PM
Hi @timiteh,

It looks you are looking for remote sorting.
http://examples2.ext.net/#/GridPanel/Paging_and_Sorting/DirectMethod/

Sorting by column header click initiates a Store's load request with sorting parameters (the DataIndex of the clicked Column and the Direction of sorting).

Thanks Daniil, it works.