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.
jholmes0724Asked:
Who is Participating?
 
RameshSConnect With a Mentor Commented:
You can try to use jQuery JavaScript library to achieve this. It has a plug-in called table TableSorter which helpts turning a standard HTML table with THEAD and TBODY tags into a sortable table without page refreshes.
Check the following links.
Sortable GridView using jQuery's TableSorter
Sorting Gridview using Jquery with ASP.NET
 
0
 
Alpesh PatelCommented:
Jholmes0724

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
0
 
entrygCommented:
0
 
kroxusCommented:
Hi
Try to
remoteSort: false

in store`s properties
0
 
jholmes0724Author Commented:
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?
0
All Courses

From novice to tech pro — start learning today.