header :"<input type=radio onmouseup=\"mainForm.callFn("+_this.formId+",'allCheck',this.value)\" name=TestRadioGroup value=2 /> 接受<input type=radio onmouseup=\"mainForm.callFn("+_this.formId+",'allCheck',this.value)\" name=TestRadioGroup value=1 />不接受",
dataIndex : 'is_conf_flag',
width : 120,
// text : '供应商确认',
renderer : function(val, cellmeta, record, rowIndex) {
return '<label>'
+ '<input type="radio" name="RadioGroup'
+ rowIndex
+ '" value="2" '
+ (val == '2' ? 'checked' : '')
+ ' '
+ ' onclick="mainForm.callFn('
+ _this.formId
+ ','
+ '\'onClick\''
+ ','
+ rowIndex
+ ','
+ '\'2\''
+ ')"'
+ ' />'
+ '</label>'
+ '<label><span>接受</span>'
+ '<input type="radio" name="RadioGroup'
+ rowIndex
+ '" value=\"1\" '
+ (val == '1' ? 'checked' : '')
+ ' '
+ ' onclick="mainForm.callFn('
+ _this.formId
+ ','
+ '\'onClick\''
+ ','
+ rowIndex
+ ','
+ '\'1\''
+ ')"'
+ '/>'
+ ' <span>不接受</span></label>';
}
这下面是代码效果
我的问题是,怎么做才能在,点击标题上面的接受/不接受,下面的数据就全部选择接受/不接受。。。。。求解