比如,选中单选按钮的一个选项,其他单选按钮的相同选项也被选中;取消选择,其他的也被取消选择
在普通报表中选中最上方的单选按钮的框进行组件设置,点击事件,点击添加事件,选中状态改变。
里面的js如下:
var a = this.getValue();
var status = contentPane.getWidgetsByName(“status”);
if(status.length>0){
$.each(status,function(i,item){
var cell = item.options.location;
if(a.length0){
item.reset();
}
contentPane.setCellValue(cell,null,a);
})
}else{
contentPane.setCellValue(“B2”,null,a);
if(a.length0){
contentPane.getWidgetByName(“status”).reset();
}
}
可以实现该状态了。
帆软实现一个单选按钮,可以统一设置其他单选按钮的选择状态
最新推荐文章于 2024-07-09 15:58:05 发布