简体   繁体   English

平滑网格列无法正确呈现

[英]Slick Grid column not rendering properly

在此处输入图片说明 See 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.? 在隐藏该网格渲染的那个时间区域创建并渲染网格时,还有一件事情,我的意思是存在选项卡布局,并且在其中一个选项卡中创建了这些网格,而活动选项卡却不同,这有什么问题吗?

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}. 我通常称{grid}。 resizeCanvas () when i show the tab. 当我显示标签时, resizeCanvas ()。 Alternatively, you can show the element while creating the grid and hide it later on. 或者,您可以在创建网格时显示该元素,然后稍后将其隐藏。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM