asp.net mvc - In KendoUI Grid - make grid using C# viewModel -
my scenario , i've controller passing viewmodel object view .
for 1 model can return json array controller . multiple objects case viewmodel , thing each list (in viewmodel object) need make seperate grid . appreciated .
i have done before - in javascript, can generate kendo datasource object in viewmodel:
var yourdatasource = new kendo.data.datasource({ data: @html.raw(json.encode(model.someobject)) }); yourdatasource.read();
more not though, wire service loading of data can asynchronous, etc...
Comments
Post a Comment