How to add sort function for the table via ajax in ASP.NET MVC?What is the best practice.
- by Eric Wang
How to add sort function for the table via ajax in ASP.NET MVC?What is the best practice.
If not use Ajax, it maybe much easier, just return View, but if use AJAX, what data structure should return?I just use Json to return the data, but i found each JSON data model return to the client browser, the JS have to use different code to parse it, remove the originally table rows, add the new data rows(because the column is different) etc. It make me crazy, is there any better way to do that?
Thank you for any advice.