WebGrid is great!
I used a lot of opensource grid control, such as PagedList.Mvc. They are great! But I found they are not working with Ajax very easily! But I found MVC3 has a default Grid control calls, WebGrid. It work perfectly with Ajax. You just need to say the gird name in "ajaxUpdateContainerId".
Code
var grid = new WebGrid(Model.result, defaultSort: "StudentId", rowsPerPage: 100, ajaxUpdateContainerId: "grid"); |
In the area you need to display the gird
Code
@grid.GetHtml() |
That is easy!!!
If you are using MVC3, you can save your time to look for third party control.
Trackback address for this post
Trackback URL (right click and copy shortcut/link location)
Feedback awaiting moderation
This post has 6 feedbacks awaiting moderation...
Form is loading...