I have a ExtJs grid with three columns (with the third column being status). The first two columns are loaded to store and populated in grid. And the third column depends on the first two columns. I cannot create a new store for the third column.
Is it possible to make ajax call in renderer to populate the third column? I know that renderer is synchronous. Is there any way to achieve this? Any example is highly appreciated.
function renderStatus(value) {
var statusAjaxOnSuccessCallback = function (serverStatus) {
//debugger;
grid.getStore().each(function (rec) {
rec.set('Status', 'After Ajax');
});
};
callAjax(statusAjaxOnSuccessCallback);
//return 'BeforeAjax';
}