PDA

View Full Version : How to do grid row sorting on action column



sandy52
27 Mar 2014, 9:33 PM
Hi,
I need suggestion how can i do sorting on grid by action column button like:
48472

anyone have suggestion, and also want to save this order in database

Thanks & Regards,
Sandy

scottmartin
28 Mar 2014, 6:37 AM
You can sort by using store.sort()


store.sort('name', 'DESC'); // ASC


Not sure I understand your request to save the sort in a database .. do you want to save the state of the grid to a table for recall?
Perhaps this remote state manager is what you are looking for:
http://www.sencha.com/forum/showthread.php?141207

sandy52
31 Mar 2014, 7:46 PM
Hi Scott,
Thanks for your reply, but i want to move rows in grid like using actioncolumn i shown in image and save that order in database.

Thanks,
Sandy