Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
25
Bind to grid with JSON data using MVC helper?
posted

Is this possible? Rather than pass an IQueryable object to the grid constructor, I just want to set the Datasource to a JSON string I already have.

@(Html.Infragistics().Grid(Model).ID("grid1")

I want to do this instead (doesn't compile)

@(
Html.Infragistics().Grid().ID("grid1").Datasource(myJsonString)