gpt4 book ai didi

java - 在 smartgwt ListGrid 中应用特定单元格的背景颜色

转载 作者:行者123 更新时间:2023-11-29 09:15:19 24 4
gpt4 key购买 nike

几周前我开始使用 smartgwt 进行开发,我遇到了一个问题,我想在 ListGrid 的特定单元格中插入背景颜色。问题是我无法访问带有索引的 ListGrid 元素(例如 grid(i,j))任何想法??谢谢

最佳答案

我可以想到两种方法来实现这一点:

1)Hilites。适用于根据标准为行着色。 http://www.smartclient.com/smartgwt/showcase/#grid_hiliting_formula

2)通过覆盖 createRecordComponent() 、 updateRecordComponent() 和 showRecordComponent() 创建自定义单元 Canvas

关于java - 在 smartgwt ListGrid 中应用特定单元格的背景颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9825093/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com