Hi,
I ran into an issue of the Kenod UI Grid not refreshing when using Angular directives. It displays the results of the first search even when the datasource contains the new data. I am using Angular 1.3.15 and the latest version of Kendo UI.
The code:
<div kendo-grid scrollable="true"
pageable="true" sortable="true"
options="vm.gridOptions" k-ng-delay="vm.gridOptions"
>
</div>
function search() {
dataservice.searchClaims(vm.selectedColumn, vm.selectedOption, vm.searchValue)
.then(searchSuccess)
.catch(errorCallback)
;
function searchSuccess(response) {
vm.gridOptions = {
dataSource: new kendo.data.DataSource({
data: response,
pageSize: 10,
pageable: true
}),
selectable: 'row',
columns: common.claimSearch.gridColumns
}
}
};
Could someone advise?
Thank you.