Mitul Sanghani
Mitul Sanghani

Reputation: 230

Slick Grid column not rendering properly

enter image description hereSee snapshot attached very first time when grid is created it shows like this snapshot, once we change size of any column by dragging or we change displayed column by right click and check/uncheck column to display or hide then column will align properly and also shows data.

one more thing when grid is created and rendered at that time area where this grid render is hidden, i mean there are tab layout and in one of tab these grid is created and active tab is different, does it make any problem.?

Upvotes: 0

Views: 1048

Answers (1)

winghei
winghei

Reputation: 642

The grid size is rendered based on the current element size where it is attached to. Thus, if the element is hidden it will not show the correct layout. I usually call {grid}.resizeCanvas() when i show the tab. Alternatively, you can show the element while creating the grid and hide it later on.

Upvotes: 1

Related Questions