Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ajax enabled GridView in ASP.NET MVC is possible or not? [duplicate]

I'm looking for good patterns for implementing a paged table of results in ASP.NET MVC with sorting, filtering, and paging provided via AJAX. It seems to me that I should have my controller actions provide only the data and not mark up to maintain the separation of concerns -- so the Ajax callback would provide new table data and pager settings which the client would use to re-render the table. Alternatively, I could use have the controller return a partial view that I simply replace inside a container on the page.

I'm new to the ASP.NET MVC world, so I'd be interested in hearing opinions and other alternatives as well.

How would you go about doing this?

I'm also interested in hearing about jquery table plugins that work well with Ajax.

like image 622
tvanfosson Avatar asked Jan 21 '26 12:01

tvanfosson


1 Answers

Here are a few options to checkout:

  • jQuery Flexigrid
  • Yahoo DataTable
  • Ext JS

I'm leaning towards Yahoo's solution atm since it offers much more than just a grid control.

like image 187
Todd Smith Avatar answered Jan 23 '26 03:01

Todd Smith



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!