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
Suthish NairPosted May 18, 2011, 1:35 PM
Dorababu MekaPosted May 18, 2011, 12:30 PM
http://forums.asp.net/p/1495229/3523818.aspx
http://www.a2zdotnet.com/View.aspx?Id=106
kumar kPosted May 18, 2011, 12:24 PM
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
Posted May 17, 2011, 12:19 AM
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.