hi
i need mvc4 razor view ajax call using bind data in webgrid pls any one can help me
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Vincent Maverick DuranoPosted May 2, 2015, 1:52 AM
You can't bind data directly to the webgrid from the client. Webgrid generates an HTML table from the server. You can however add row to the table using jQuery buut not load initial data, since jquery runs at the client and webgrid on the server. Here's a detailed example on how to utilize webgrid in MVC application:
https://msdn.microsoft.com/en-us/magazine/hh288075.aspx
If you need a fully client-side grid in MVC then you may want to look at jgGrid / jQuery DataTables instead