I am using Kendo Grid with Angular. I need to call the grid only after the return of a promise. However, placing a call to the grid in the "THEN" causes the grid to never load. Even if I make a direct call to dataSource.read(); it will not read the datasource.
Here is my code:
function initialize() {
var savedSearchCriteria;
var promise = isFiltered();
promise.then(function() {
savedSearchCriteria = $window.localStorage.getItem('pecGeneralSearchCriteria');
}).then(function () {
searchGrid();
});
};
A call to searchGrid() outside of the "THEN" for the promise works fine.