jsgrid icon indicating copy to clipboard operation
jsgrid copied to clipboard

Is it possible to config auto reload interval?

Open melson-jao opened this issue 10 years ago • 3 comments

Hi,

This is not a bug but asking for some help. Everything is great. After I enable autoload is true, it is fine to autoload data periodically. But I want to know is it possible to config the autoload interval, ex 30s or 1min? I check the documents but no related config is found. Any response is appreciated. Thanks.

melson-jao avatar Jun 28 '16 04:06 melson-jao

Hi,

The option autoload tells to load data right after grid rendering. It happens only once. If you need to reload data periodically use setTimeout and call loadData method, then on done of the method schedule another reload with setTimeout, and so forth.

tabalinas avatar Jun 28 '16 07:06 tabalinas

Appreciate for the quick and clear response. Sorry for my mistake without checking the exact meaning of autoload. Thanks again.

melson-jao avatar Jul 04 '16 01:07 melson-jao

You are welcome!

tabalinas avatar Jul 05 '16 23:07 tabalinas