dgrid
dgrid copied to clipboard
refresh of grid(autoheight) when it is invisible
just have another issue when grid is invisible
open from tests folder Rest.html
and append at the end of grid creation and before line
https://github.com/SitePen/dgrid/blob/master/test/Rest.html#L79
window.grid.set('class','dgrid-autoheight');
document.body.style.display='none';
window.grid.refresh().then(function(){
document.body.style.display='block';
});
and rows disappear
how to resolve it? call <code>refresh()</code>
only if grid is visible or there is another way?