How to use setDataSource on Hierarchy Grid
Hello All -
I have a Hierarchy Grid created.. and I need to refresh the data sources after certain events... How do i go about doing it..
I know we can use setDataSource method on the Grid's widget.. but i really dont know how to get the widget for a hierarchy grid..
usually if i have a div element.. i would say
var grid = $("#grid").data("kendoGrid");
grid.setDataSource(dataSource);
but in a hierarchy grid... the child grid is created as
$("<div/>").appendTo(detailCell).kendoGrid({
dataSource: {
data: ReturnData
}, ......
How do i obtain the widget for this and rebind the data source..?
Hello All -
I have a Hierarchy Grid created.. and I need to refresh the data sources after certain events... How do i go about doing it..
I know we can use setDataSource method on the Grid's widget.. but i really dont know how to get the widget for a hierarchy grid..
usually if i have a div element.. i would say
var grid = $("#grid").data("kendoGrid");
grid.setDataSource(dataSource);
but in a hierarchy grid... the child grid is created as
$("<div/>").appendTo(detailCell).kendoGrid({
dataSource: {
data: ReturnData
}, ......
How do i obtain the widget for this and rebind the data source..?