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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Vincent Maverick DuranoRank #238 · 10.3K reputationPosted May 1, 2015, 9:52 PM EDT
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