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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
RameshSCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.