jQuery MiniUI

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

celledit保存时怎么分别取下拉框控件的value和text [复制链接]

Rank: 1

跳转到指定楼层
楼主
发表于 2013-10-26 11:22:01 |只看该作者 |倒序浏览
celledit保存时怎么分别取下拉框控件的value和text

Rank: 8Rank: 8

沙发
发表于 2013-10-28 12:24:48 |只看该作者
下拉框列不要用type="comboboxcolumn"

<div displayField="ss"  field="gender">性别
<input ......>
</div>

然后getChanges()获取出来的数据 ss就是你的text  {name:"1",gender:"2",ss:"男"}会是这样的数据,ss就是你的文本

Rank: 3Rank: 3

板凳
发表于 2013-10-28 14:31:27 |只看该作者
factory 发表于 2013-10-28 12:24
下拉框列不要用type="comboboxcolumn"

性别

不明白,可以写完整点不
<div type="comboboxcolumn" autoshowpopup="true" name="AgentConditionHall_LevelID" field="AgentConditionHall_LevelID"
                    width="200" allowsort="true" align="center" headeralign="center">
                    级别
                    <input property="editor" class="mini-combobox" valuefield="CustomerLevel_ID" textfield="CustomerLevel_Text"
                        url="../Handler/Common/GetCustomerLevel.ashx" emptytext="请选择级别" shownullitem="true"
                        nullitemtext="请选择级别" style="width: 100%" />
                </div>

Rank: 8Rank: 8

地板
发表于 2013-10-28 14:46:02 |只看该作者
<div  autoshowpopup="true" name="AgentConditionHall_LevelID" field="AgentConditionHall_LevelID"
                displayField="xxxxxxxx"
                    width="200" allowsort="true" align="center" headeralign="center">

Archiver|普加软件

GMT+8, 2025-7-13 05:27 , Processed in 1.024230 second(s), 9 queries .

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

回顶部