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)
Hello,
I'm just checking if you have any further questions on the matter.
Hi James,
Thank you for posting in our forum.
You could also use .DataSourceUrl() if you are binding to a remote json data source such as web service.
If you have any other questions, please feel free to contact us.
Excuse me, that would actually be something like this
@(Html.Infragistics().Grid().ID("grid1").Datasource(Model)where of course the view's model is a JSON string.By the way, is it such a good idea to preserve formatting on paste like this? There's not even a clear formatting button on the toolbar.