This is a migrated thread and some comments may be shown as answers.

Best practice for refresh grid silently

1 Answer 163 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Itay
Top achievements
Rank 1
Itay asked on 18 May 2016, 10:58 AM

What is the best practice for refresh grid data from remote server with paging silently?.

 

I need to poll for data from server every x milliseconds without the user notice, i.e no loading indication - just replacing column values.

 

I am using kendo ui angular version.

 

 

1 Answer, 1 is accepted

Sort by
0
Stephen
Top achievements
Rank 2
answered on 18 May 2016, 08:44 PM

You could add a CSS rule like so:

#myGrid .k-loading-mask {
    display: none;
}

When I added this rule and clicked my grid's refresh button in the pager area, no progress indicator displayed but it should continue to display elsewhere.

It may also be possible to connect appropriate events, i.e. dataSource requestStart.  I'm just not sure at what point in the chain the progress indicator is displayed.

 

Be aware that any grid refresh will cause the grid to redraw and if the user has a particular row or cell selected, etc, that state will be lost after the redraw.  If you need to retain that state, then you will *have* tap into the various events to save the state before the refresh and then restore it after.

 

 

 

Tags
Grid
Asked by
Itay
Top achievements
Rank 1
Answers by
Stephen
Top achievements
Rank 2
Share this question
or