hi guys,
First of all, thanks a lot for making easyUI. Very powerful and simpler than datatables.
I've got data which changes regulary with user interaction requirement. This needs to be displayed as a grid/table. therefore I've implemented easyUI CRUD datagrid (NOT inline editing, but the simple datagrid). Hence the datagrid needs to refresh (say every 15secs) and reload.
I'm doing like below
$(function() {
function grid_refresh() {
$('#dg').datagrid('reload'); // reload grid
setTimeout(grid_refresh, 15000); // schedule next refresh after 15sec
}
grid_refresh();
});
My query is
1. Is there a method/option , so that easyUI can detect , if the data has changed, ONLY then reload?
2. Every 15 secs, a loading icon comes + greys out datagrid, which seems like flashing screen. Is there a way to avoid the visual flashing during reload ? i.e. can it load quietly without any visual effect on the UI
Thanks in advance.