Is there a sample code for adding a MVC kendo UI grid in a partial view, and setting its datasource and columns in a view
Thanks,
Annie
3 Answers, 1 is accepted
0
Dimiter Madjarov
Telerik team
answered on 08 Oct 2014, 08:12 AM
Hi Annie,
Generally the Grid columns should be specified in it's initialization code. Could you please elaborate what are you trying to achieve so I could assist further?
I am looking forward to hearing from you.
Regards,
Dimiter Madjarov
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
I would like to initialize the grid in a partial view, just setting sorting, reordering, paging, then in the view
that calls the partial view set the datasource of the grid and also set the columns. This is so that we can re-use the same grid in multiple views
Thanks,
Annie
0
Dimiter Madjarov
Telerik team
answered on 09 Oct 2014, 08:29 AM
Hi Annie,
The current scenario is not directly supported in the MVC Grid. A similar alternatives that I could suggest, although they do no match the current requirements directly are:
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.