获取所有控件mini.get("XXX").setReadOnly(false)
表单有些字段 只做展示 后端不再需要 我想问问 form.getData()能不能忽略他
2020-12-17 17:14 - 2059875705 - 技术交流
如题,我需要根据其他值来动态设置datagrid中的一列下拉框是否为只读的,请教下该怎么做
已上传
阅读过该主题,不知道如何在列上加上readOnly="true"http://miniui.com/forum/forum.php?mod=viewthread&tid=15586&highlight=checkboxcolumn 需求是判断checkboxcolumn的值为true就不可以取消勾选了,希望可以直接 ...
我需要mini-combobox只显示一个值,值我已经给过了,然后怎么设置mini-combobox只读
两个问题,请指点 1、怎么判断grid单元格是否为空; 2、是否有属性可以使grid指定的列为只读,点击不会有效果,如下图
Datagrid 设置 allowCellEdit 属性为true ,使单元格可以进行编辑,现想单元格为有值时禁止编辑只读,新增时单元格为null这个单元格可编辑输入值。尝试过使用事件oncellclick单元格点击时发生,进行监听设置这行的单 ...
点击查看按钮 将修改页面的所有内容设为只读
现在有一个datagrid,在新增的时候是可编辑模式的,我现在希望在查看的时候datagrid变为只读模式,请问在JS代码中怎么设置?
已通过方法获取到对应grid的某row以及某column的cellEI。如何通过此cell对象将其设置为禁用,或者只读,或者修改其值。 修改值以后要能再getData()的时候,要能获取到对应的值。 ...
2018-3-29 20:14 - feng271374203 - 技术交流
这是我的文本框的设置。 页面初始化执行的js: function onload(){ var regdate = mini.get("registerTime") regdate.setValue(new Date()); reg ...
2018-2-2 11:08 - 小布丁 - BUG报告和需求建议
表单设置只读后,里面的input还能不能获取到焦点?
function labelModel(_form) { var fields = _form.getFields(); for (var i = 0, l = fields.length; i < l; i++) { var c = fields; if (c.getClass === "fieldTitle") { if (c.setRead ...
var form = new mini.Form("form1"); 在在线示例中,把表单设为只读的方法中 function labelModel() { var fields = form.getFields(); for (var i = 0, l = fields.length; ...
2017-3-28 18:59 - qq656602090 - 技术交流
想对新增这一行的某一个元素设置可编辑,该如何操作 比如 var newRow = { name: "", region: "", hydrology: "", distance: "", }; 新增了这样一行,然后我要对name 进行setReadOnly(false) 该 ...
请问一下版主,datagrid的column有readOnly属性,但我只想设置某些行的所有列只读,该如何做呢?比如我有10行,我想设置第一行和第三行的所有列只读,其他行的所有列可以编辑,这个怎么操作呢? ...
2016-8-9 11:11 - wangchao928 - 技术交流
请问radiobuttonlist有没有类似下列的这种属性 写法呢?? controls.setAllowInput(true); controls.setReadOnly(false); 我想把radiobuttonlist 在不同的情况下设置只读还是允许编辑,不想用enabled变灰 ...
在miniui中 可以控制某一列开始几行数据不可编辑,最后一行数据可编辑吗
2015-2-6 09:42 - nuangnian - BUG报告和需求建议