KoGrid
KoGrid copied to clipboard
Grid not visible until browser or screen is re-sized.
Hi, I am using Kogrid to display my data, and on initial load grid is not visible. It gets rendered or visible when we re-size the browser or window.
The issue seems to be that the width of the divisions(all the child divisions of the kogrid div) is getting set to zero on initial load, on the re-sizing it takes the correct width.
Any suggestions?
I'm experiencing the exact same issue. I believe it's because the container element of the koGrid div has a display:none.
If I make it visible then the grid works fine.
I corrected this behavior by wiring up the compositionComplete event and firing a resize
// use this to fix the kogrid resize issue
function compositionComplete() {
$(window).trigger('resize');
return true;
}