Link to home
Start Free TrialLog in
Avatar of jholmes0724
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.
Avatar of Alpesh Patel
Alpesh Patel
Flag of United States of America image

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
ASKER CERTIFIED SOLUTION
Avatar of RameshS
RameshS
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kroxus
kroxus

Hi
Try to
remoteSort: false

in store`s properties
Avatar of jholmes0724

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?