Hi,
i am wondering if there is any way to avoid postbacks up on sorting when clicked on a sortexpression column in a Gridview, can someone shed some light on this..
what if i do this with Ajax instead of Javascript?
note: am using sqldatasource as datasource here for some reason, so data binding is thru IDE not programmatic.
thanks in advance.
cheers
kumar
Loading

Posted May 16, 2011, 8:19 PM EDT
I found the below article they are doing sorting at client side by using Javascript.
Sort gridview without doing postback in asp.net
You can do ajax also for sorting. For this,please refer the below links.
http://programming.top54u.com/post/AJAX-GridView-Paging-and-Sorting-using-C-sharp-in-ASP-Net.aspx
http://www.ajaxtutorials.com/ajax-tutorials/sorting-gridview-data-with-ajax/
http://aspadvice.com/blogs/azamsharp/archive/2006/09/20/GridView-Property-EnableSortingAndPagingCallbacks.aspx
Hope this helps you.
kumar k26 reputationPosted May 18, 2011, 8:24 AM EDT
Thanks for the reply.
I am using asp.net 2.0 ,so no chance of using AJax.
Even using Ajax (with new app in 4.0) am seeing Html out of memory: . Am having huge no of records (sometimes 1600) in gridview and trying to sort on a column sometimes by name, number...etc.
I am not using Paging as per requirement. The above javascript reference is not working for me , it is just hosed ....
Can you please let me know more about this...My ultimate goal is to avoid postback in 2.0 (i may also use ajax but html out of memeory error is killing the app).
Thanks,
Kumar
Dorababu MekaRank #457 · 5.5K reputationPosted May 18, 2011, 8:30 AM EDT
http://forums.asp.net/p/1495229/3523818.aspx
http://www.a2zdotnet.com/View.aspx?Id=106
Suthish NairRank #92 · 22.8K reputationPosted May 18, 2011, 9:35 AM EDT