jQuery MiniUI
标题:
treegrid如何设置可编辑??
[打印本页]
作者:
sxyzy
时间:
2013-5-26 17:04:11
标题:
treegrid如何设置可编辑??
本帖最后由 sxyzy 于 2013-5-26 17:09 编辑
<div id="treegrid1" class="mini-treegrid" style="width: 100%; height: 380px;" showtreeicon="true"
treecolumn="name" idfield="id" parentfield="pid" resultastree="false" url="deptTree.txt"
allowresize="true" allowCellEdit="true" allowCellSelect="true" >
<div property="columns">
<div type="indexcolumn">
</div>
<div name="name" field="name" width="150">
菜单名称</div>
<div type="checkboxcolumn" field="CanAdd" truevalue="1" falsevalue="0" width="60"
headeralign="center">
访问</div>
<div type="checkboxcolumn" field="CanDele" truevalue="1" falsevalue="0" width="60"
headeralign="center">
删除</div>
<div field="CanSH" width="60"
headeralign="center">
审核
<input property="editor"class="mini-checkbox" /></div>
</div>
</div>
<div style="text-align: center; padding: 10px;">
<a class="mini-button" onclick="onOk" style="width: 60px; margin-right: 20px;">确定</a>
<a class="mini-button" onclick="onCancel" style="width: 60px;">取消</a>
</div>
复制代码
treegrid 里设置
allowCellEdit="true" allowCellSelect="true"
后,现还是不能编辑?如下图,不能点击
checkbox
[attach]2030[/attach]
作者:
factory
时间:
2013-5-27 09:04:54
你的是多少版本,treegrid可以单元格编辑,必须要3.0,用法跟datagrid一样,之前版本只支持弹出面板的方式编辑
作者:
felt
时间:
2013-5-27 09:12:16
本帖最后由 felt 于 2013-5-27 09:53 编辑
你的代码我这边是可以编辑的,如图。[attach]2035[/attach]
请更新下新的MiniUI.
treegrid单元格编辑demo
http://www.miniui.com/demo/#src=treegrid/celledit.html
作者:
sxyzy
时间:
2013-5-27 18:00:26
felt 发表于 2013-5-27 09:12
你的代码我这边是可以编辑的,如图。
请更新下新的MiniUI.
treegrid单元格编辑demo
更新新的MiniUI. 实现了谢谢。
欢迎光临 jQuery MiniUI (http://miniui.com/discuss/)
Powered by Discuz! X2