I have created a data source like
$scope.gridOptions = {
dataSource: {
data: someData
},
sortable: false,
pageable: false,
columns: [
{ field: "CarlineName", title: "Carline Name" },
{ field: "Today", title: "Today" },
{ field: "PrevDay", title: "Prev Day" }
],
}
};
I have grid definition something like this
<div id="retailSalesGrid" class="retailSalesGrid" data-kendo-grid data-k-options="gridOptions" data-k-ng-delay="gridOptions" data-k-rebind="gridOptions.selectable"></div>
This is working fine and the grid seems to be working fine. But, lets say someData changes, how do I refresh the grid to show the new data. Grid does not refresh. How do I refresh it from the angular code ?
Please help !
$scope.gridOptions = {
dataSource: {
data: someData
},
sortable: false,
pageable: false,
columns: [
{ field: "CarlineName", title: "Carline Name" },
{ field: "Today", title: "Today" },
{ field: "PrevDay", title: "Prev Day" }
],
}
};
I have grid definition something like this
<div id="retailSalesGrid" class="retailSalesGrid" data-kendo-grid data-k-options="gridOptions" data-k-ng-delay="gridOptions" data-k-rebind="gridOptions.selectable"></div>
This is working fine and the grid seems to be working fine. But, lets say someData changes, how do I refresh the grid to show the new data. Grid does not refresh. How do I refresh it from the angular code ?
Please help !