If you call .kendoGrid(options) on an element that is not "on screen" (e.g. display: none) it does not render and function correctly.
In particular the height, scrollbars and reorderable properties do not result in expected functionality.
The following fiddle shows expected and unexpected behaviors - via the use of a bootstrap tab control.
Tab 1 - works as expected as this tab is visible on screen when the .kendoGrid(options) js call is made.
Tab 2 and 3 - do not work as expected as they are not on-screen when the .kendoGrid(options) js call is made.
http://jsfiddle.net/YNdAJ/3/
The immediate work around is to call .kendoGrid(options) the first time each tab is displayed on screen however there is a significant delay while this processing occurs and I'd rather have all that happen at a different stage of the page load lifecycle.
Is this a bug? If not, is there a better way to achieve what I'm looking for?
In particular the height, scrollbars and reorderable properties do not result in expected functionality.
The following fiddle shows expected and unexpected behaviors - via the use of a bootstrap tab control.
Tab 1 - works as expected as this tab is visible on screen when the .kendoGrid(options) js call is made.
Tab 2 and 3 - do not work as expected as they are not on-screen when the .kendoGrid(options) js call is made.
- You cannot re-order the columns via drag n drop.
- The scroll bars extend past the height set for the grid.
http://jsfiddle.net/YNdAJ/3/
The immediate work around is to call .kendoGrid(options) the first time each tab is displayed on screen however there is a significant delay while this processing occurs and I'd rather have all that happen at a different stage of the page load lifecycle.
Is this a bug? If not, is there a better way to achieve what I'm looking for?