我试图在 smartgwt 的 SelectItem 中禁用几个选项,但未能找到合适的 API。请帮忙。
最佳答案
使用 optionDataSource 为 SelectItem 提供值。然后,您可以使用 ListGrid.recordEnabledProperty 将 ListGridRecords 设置为禁用,或者如果它们只是变灰但未禁用,请使用 SelectItem.setPickListFields() 来安装格式和样式覆盖。
关于gwt - 如何在 smartgwt 中将 SelectItem 中的几个选项变灰?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5252595/