Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个列表框,我正在使用客户端 javascript 添加和删除项目。问题是这些新值没有保存到列表框(绑定到字段)。返回的唯一值是在列表框中设置的原始值。这些值都在客户端上,因为我可以遍历数组。如何获取这些值来替换当前存在的值?
在 中List Box properties,您必须设置mutiple = true
List Box properties
mutiple = true
默认情况下,列表框有一个您在保存期间可能看不到的验证器,(您需要添加错误控件才能看到它)并且验证器不接受使用 CSJS 添加的新值
如果您在列表框控件中设置 disableValidators="true" ,您会抑制验证器并且保存工作正常。您还需要在保存之前使用 CSJS 选择列表框中的条目,
归功于杰西·加拉格尔
托马斯