jQuery MiniUI

标题: mini-buttonedit 如何动态设置不允许输入 [打印本页]

作者: deluyiyue    时间: 2015-1-20 16:17:32     标题: mini-buttonedit 如何动态设置不允许输入

datagrid中某一个可编辑列为“mini-buttonedit”,如何根据上面的条件 动态设置为“不允许输入”?
也就是触发onfocus事件时,如何修改这个input的  allowinput属性值?

<div field="nextQuarterAmount" headerAlign="center"  width="8%"   vtype="required;float;range:0,999999999999" dataType="currency" >
        季度预提
        <input property="editor" class="mini-buttonedit"  required="true" onfocus='asia(this)'
          vtype="float" requiredErrorText="【季度预提 】:不能为空"  floatErrorText="【季度预提 】:只能输入数字" />
       </div>

作者: dforce    时间: 2015-1-20 16:22:31

e.sender.setAllowInput(false/true)
作者: deluyiyue    时间: 2015-1-20 16:53:39

dforce 发表于 2015-1-20 16:22
e.sender.setAllowInput(false/true)

3QQQQQQQQQQQ




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