<script>
mini.parse();
var grid1= mini.get("grid1");
grid1.set({ "allowcelledit": false, "allowcellselect": false, "multiselect": false }); //设置默认不可编辑,这样行吗?调试时没效果。
function update()
{
grid1.set({ "allowcelledit": true, "allowcellselect": true, "multiselect": true}); //设置可编辑
}
function cancel()
{
grid1.set({ "allowcelledit": false, "allowcellselect": false, "multiselect": false }); //设置不可编辑
}
</script>
<div id="grid1" class="mini-datagrid" idfield="a" allowcelledit="true" allowcellselect="true" multiselect="true">
<div property="columns">
<div field="a" width="120" headeralign="center" allowsort="true">特征键值
<input property="editor" class="mini-textbox" style="width:100%;" minwidth="200" />
</div>
<div field="b" width="120" headeralign="center" allowsort="true">特征名称
<input property="editor" class="mini-textbox" style="width:100%;" minwidth="200" />
</div>
</div>
</div>
<a class="mini-button" href="javascript:update();">更新</a>
<a class="mini-button" href="javascript:cancel();">取消</a>
felt 发表于 2014-9-10 11:34
注意大小写
{ "allowCellEdit": false, "allowCellSelect": false, "multiSelect": false }
欢迎光临 jQuery MiniUI (http://miniui.com/discuss/) | Powered by Discuz! X2 |