jQuery MiniUI

标题: treegrid中CheckBox怎么始终显示 [打印本页]

作者: 冰是睡着的雪    时间: 2018-6-4 09:56:56     标题: treegrid中CheckBox怎么始终显示

[attach]10946[/attach]
  1. <div field="IsEqu" header="Equipment" headeralign="center" align="center" allowsort="true">
  2.                                     Equipment<input property="editor" class="mini-CheckBox" truevalue="1" falsevalue="0" style="width: 100%;" oncheckedchanged="as(this)" />
  3.                                 </div>
复制代码
  1. <div id="a1" idfield="wbs_guid" parentfield="parent_wbs_guid" class="mini-treegrid"
  2.                              sortfield="LongCode" treecolumn="wbs_short_name" style="width: 100%; height: 100%;"
  3.                              allowresize="true" allowcelledit="true" multiselect="true" showpager="false"
  4.                              allowcellselect="true" oncellendedit="onWBSCellEndEdit" showcheckbox="false"
  5.                              expandonload="true" checkrecursive="false" onnodecheck="WBS_nodecheck">
  6.                             <div property="columns">
复制代码


上面那种写法,复选框不能直接展示,只有在选中某个单元格时,才能显示复选框,这样的操作体验非常差。数据源是loadList  进去的。我想弄成下面这种始终显示复选框的。该怎么改?
[attach]10947[/attach]





作者: dforce    时间: 2018-6-4 10:14:38

http://www.miniui.com/demo/#src=datagrid/celledit.html
参考婚否这列,用我们的checkboxcolumn




欢迎光临 jQuery MiniUI (http://miniui.com/discuss/) Powered by Discuz! X2