jholmes0724
asked on
Gridview sort without Post Back
Looking for a good solution to do Gridview sorting without doing a postback. On a normal Gridview with Sorting turned on when you click the header link it does a postback and has to reload the entire page. Looking for the best solution for this task. Let me know what options I have.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You can try JSON for grid binding.. Try following..
http://geekswithblogs.net/shahed/archive/2008/03/22/120709.aspx
http://extjs.org.cn/extjs/examples/grid/json-grid.html
http://geekswithblogs.net/shahed/archive/2008/03/22/120709.aspx
http://extjs.org.cn/extjs/examples/grid/json-grid.html
Hi
Try to
remoteSort: false
in store`s properties
Try to
remoteSort: false
in store`s properties
ASKER
What do you mean the remoteSort property, there is no such property on the Gridview. Can you elaborate more on what you are referring to?
Gridview sorting without postback is just impossible, because Gridview render as HTML table element and you cant cange HTML table rendering without going back to server....
One more concern is when u apply sorting on any Grid and that Grid itself has some paging then the per page data will be going to change...... and that will only possible through Gridview server object and for that you need postback.......
Now for your problem ...... there is couple of solutions.....
1. you can use AJAX and can do partialpostback only for GridView
2. here is some javascript based tricky thing that you need to develop on your page.
http://www.a2zdotnet.com/View.aspx?id=106