I want to place a grid inside of a template. I also want it to be able to use URLs to bind to. Is there a best way to do that?
Right now, I am using the template to out put the datasource through stringify and then reparsing it.
I have an object that has a person and a rockoverview.rocks members. since these grids are dynamic and can have multiples on the same page, i need to create a unique id and refer to it uniquely.
$("\#grdStuck#=data.Person.ID#").kendoGrid(
{
dataSource: JSON.parse('#=kendo.stringify(data.RockOverview.Rocks)#'),
sortable: false,
pageable: false,
scrollable: false
});
I have created an extremely simple example that demonstrates what i am trying to accomplish.
http://jsfiddle.net/aPXsg/5/
Right now, I am using the template to out put the datasource through stringify and then reparsing it.
I have an object that has a person and a rockoverview.rocks members. since these grids are dynamic and can have multiples on the same page, i need to create a unique id and refer to it uniquely.
$("\#grdStuck#=data.Person.ID#").kendoGrid(
{
dataSource: JSON.parse('#=kendo.stringify(data.RockOverview.Rocks)#'),
sortable: false,
pageable: false,
scrollable: false
});
I have created an extremely simple example that demonstrates what i am trying to accomplish.
http://jsfiddle.net/aPXsg/5/