Apr 06, 2017, 2:57 PM
Grid load values delay
Hello,
I am implementing this example.
We have a global variable which when changes the application loads different data.
In you example something like changing the country so for different countries the Dashboard data is different.
When I change this global variable the store is loading before the Dashboard-window opens, but the data in the grid is loading after a while. So the user when opens the window access the old data for a while.
The problem is solved if I destroy the window instead of hiding it, but then when I select a line the application hangs here:
var onSelectionChange = function (model, records)
Error:
I am implementing this example.
We have a global variable which when changes the application loads different data.
In you example something like changing the country so for different countries the Dashboard data is different.
When I change this global variable the store is loading before the Dashboard-window opens, but the data in the grid is loading after a while. So the user when opens the window access the old data for a while.
The problem is solved if I destroy the window instead of hiding it, but then when I select a line the application hangs here:
var onSelectionChange = function (model, records)
Error:
Uncaught TypeError: Cannot read property 'getItems' of null
if (!form) { //error line
form = this.up('form').getForm();
fields = form.getFields();
fields.each(function (field) {
if (field.name != 'Title') {
field.setDisabled(false);
}
});
Last edited by atroul; Apr 06, 2017 at 3:01 PM.