jQuery MiniUI

 找回密码
 立即注册
查看: 2316|回复: 1
打印 上一主题 下一主题

如何动态修改talbe单元格的属性? [复制链接]

Rank: 2

跳转到指定楼层
楼主
发表于 2021-8-17 16:11:33 |显示全部楼层 |倒序浏览
本帖最后由 月清风 于 2021-8-17 16:13 编辑

想通过选择属性类别其中一项然后只读年月并非必填。
<div field="attrClassification" headerAlign="center" type="comboboxcolumn" vtype="required" align="center" width="36">
属性类别
<input property="editor" class="mini-combobox" textField="enumValue" valueField="enumKey" data="attrClassificationData"/>
</div>
<div field="monthKbn" name="monthKbn" headerAlign="center" vtype="required" type="comboboxcolumn" align="center" width="36">
年月
<input property="editor" class="mini-combobox" data="[{id: '1', text: '年'}, {id: '2', text: '年月'}]"/>
</div>


Rank: 2

沙发
发表于 2021-8-18 11:08:23 |显示全部楼层
felt 发表于 2021-8-17 17:59
grid.on("cellbeginedit",function(e){
    var record=e.record;
    if(e.field=="年月"){

好的,谢谢,那可以修改比如http://www.miniui.com/demo/#src=datagrid/celllinkedit.html中,职位列动态的改变为下拉或文本输入吗?

Archiver|普加软件

GMT+8, 2024-5-17 14:43 , Processed in 1.034996 second(s), 11 queries .

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

回顶部