Example - Explicit Initialization

Demonstrates:

The container which the grid is being created in needs to be in the DOM and participate in layout (can be 'visibility:hidden' but not 'display:none') in order for SlickGrid to be able to make certain measurements and initialize event listeners. Normally, this is done when a SlickGrid instance is being created. Optionally, you can defer the initialization until the above condition is met and call the grid.init() method explicitly. To use explicit initialization, set the explicitInitialization option to true.

This example demonstrates creating a SlickGrid inside a detached element and calling init() explicitly when the element is added to the DOM.

View Source: