columns: [
{
text: 'Ship City', datafield: 'ShipCity', width: 150, columntype: 'combobox',
createeditor: function (row, column, editor) {
// assign a new data source to the combobox.
var list = ['Stuttgart', 'Rio de Janeiro', 'Strasbourg'];
editor.jqxComboBox({ source: list, promptText: "Please Choose:" });
},
// update the editor's value before saving it.
cellvaluechanging: function (row, column, columntype, oldvalue, newvalue) {
// return the old value, if the new value is empty.
if (newvalue == "") return oldvalue;
}
},
{
text: 'Ship Country', datafield: 'ShipCountry', width: 150, columntype: 'dropdownlist',
createeditor: function (row, column, editor) {
// assign a new data source to the dropdownlist.
var list = ['Germany', 'Brazil', 'France'];
editor.jqxDropDownList({ source: list });
},
// update the editor's value before saving it.
cellvaluechanging: function (row, column, columntype, oldvalue, newvalue) {
// return the old value, if the new value is empty.
if (newvalue == "") return oldvalue;
}
},
{ text: 'Ship Name', datafield: 'ShipName', columntype: 'combobox' }
]
分享到:
相关推荐
在WinForm界面上,采用自定义ComboBox控件实现在下拉框中显示颜色列表。本程序在VS2008下编译通过。
Android 自定义下拉框的实现,效果可到http://www.cnblogs.com/awe061/p/5221145.html查看
jQuery自定义下拉框 jQuery自定义下拉框网页特效.zip
自定义-js模仿下拉框效果 测过IE6/7/8 ff5.0 chremo 12.0. 是用li来模仿的,隐藏存在一个select方便form提交,其实既然只是获取选定后的数据,也可以用隐藏的input:text 代替 (如果出现什么异常可以给本人留言)
html中默认的select太丑了,使用jquery+html自定义下拉框。样式随心所欲。
Qt Quick自定义下拉框Combobox
Custom Controls C# WinForm 自定义ComboBox 显示颜色下拉框,在WinForm界面设计方面,采用自定义的ComboBox控件实现下拉框可选择颜色列表。可显示颜色小方块,源代码可在VS2008下编译通过。
C# 自定义带搜索下拉框,和系统自带下拉框用法一样,但是加了搜索功能
自定义多选下拉框标签,只需引用标签即可实现多选下拉框,可以传入参数来改变样式等
Android 自定义 可编辑 下拉框 已优化代码和界面
一个下拉框的值被选中后,触发另一个下拉框状态为可选! 若值为空则为不可选!
androoid自定义下拉框,仿WEB风格
这个是从国外网站直接下载的自定义ComboBox下拉框,支持下拉列表中带复选框,下来列表多列列表。
js实现通过改变下拉框的值,输出相应的下拉框的value
jQuery自定义下拉框插件 jQuery自定义下拉框插件 jQuery自定义下拉框插件 jQuery自定义下拉框插件 jQuery自定义下拉框插件 jQuery自定义下拉框插件
第 34 章 ComboGrid(数据表格下拉框)组件学习要点:1.加载方式2.属性列表3.方法列表主讲教师:李炎恢本课程由北风网和瓢城 Web 俱乐部提供本节
自定义的下拉框组件,已加了样式并且封装好,可以直接引入调用。
很好用的一款插件,针对于自己定义的下拉列表
百度编辑器自定义下拉框,或其他功能操作实例