I am sporadically seeing my grid not show any rows when in fact there are rows bound to the grid. Does anyone see if my usage pattern is incorrect when integrating angular? Thanks!
EDIT - It also appears the strange behavior only occurs when leaving the page and coming back to the page for a full refresh.
$scope.init = function () {
$scope.loading.busy.right = consigneeService.api.getActivity(session.consignee.id()).then(function (result) {
$scope.details = result;
$scope.gridOptions.dataSource.read();
});
};
$scope.gridOptions = {
dataSource: new kendo.data.DataSource({
transport: {
read: function (options) {
options.success($scope.details);
}
}
}),
sortable: {
allowUnsort: false
},
autoBind: false,
columns: [
{ field: 'activityDate', title: 'Activity Date', width: '150px', template: "{{ dataItem.activityDate | cmsUTCToLocal : 'short' }}" },
{ field: 'activityDetails', title: 'Activity Details', width: '300px;' },
{ field: 'createUserId', title: "Created By", width: "125px" }
]
};