Hi,
I am looking for the following solution:
I replaced myUpdatePanel with a client-side PageMethod to a Webservice webmethodusing ASP.NET Ajax and JSON serialization. I now want to use some kindof data table to display my result, however I also need Paging +Sorting.
Using asp:GridView is not a solution here since it is a server-side control with server-side sorting functionality.
Any suggestions? I don't want some heavy JS file that can do this.
You can add two more parameters to your "webmethod" - something like pageNumber and sortString. If I understood you correctly.
Yep. I am just wondering how to construct this whole thing. So far I am thinking of passing the sortDirection, and perform the sorting on the server side directly since I am dealing with a List. The paging is a little trickier though.
hello.
for paging, you just need to pass the current page and the number of elements per page. you should perform paging on the server side and only return the neecessary elements.
Thank you
What did you end up using for your solution? You mentioned a GridView was not an option... are you constructing the table by hand?
No comments:
Post a Comment