[英]Smart GWT RollOver Canvas in List Grid fields
Normally When we add roll over canvas in smartgwt list grid, that canvas automatically added to end of list grid row. 通常,当我们在smartgwt列表网格中添加翻转画布时,该画布会自动添加到列表网格行的末尾。
Sample code https://code.google.com/p/smartgwt/source/browse/trunk/samples/showcase/src/com/smartgwt/sample/showcase/client/grid/appearance/RollOverControlsSample.java?r=1072 示例代码https://code.google.com/p/smartgwt/source/browse/trunk/samples/showcase/src/com/smartgwt/sample/showcase/client/grid/appearance/RollOverControlsSample.java?r=1072
Screen Shot 屏幕截图
But I want to to add this roll over canvas to Country Column. 但我想将此画布翻转添加到“国家/地区”列。
Is there any way to do this. 有什么办法可以做到这一点。 thanks.
谢谢。
In the example code, use ListGrid.setUseCellRollOvers(true) to activate cell based rollover canvas. 在示例代码中,使用ListGrid.setUseCellRollOvers(true)激活基于单元格的过渡画布。 You can then check if the colNum is for the column of interest (ie the Country Column, in your case) and show the rollover only for it.
然后,您可以检查colNum是否用于感兴趣的列(在您的情况下,即“国家/地区”列),并仅显示它的展期。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.