需求如下:
根据porduct列选择的类型,动态更改List Price列的编辑属性类型。
porduct列选择的类型有"numberbox","combobox","datebox",
己知绑定onSelect方法可能获取到当前选择的类型,请问如何动态绑定,谢谢!
根据porduct列选择的类型,动态更改List Price列的编辑属性类型。
porduct列选择的类型有"numberbox","combobox","datebox",
己知绑定onSelect方法可能获取到当前选择的类型,请问如何动态绑定,谢谢!
http://www.easyui.info/archives/623.html
var p=$(ed.target).closest('td[field]');//编辑器容器
p.html('');//删除原来的编辑器
//依据product选中的内容生成对应的对象
if(value=='xxxx')p.datebox({xxxxxxx})
else p.numberbox({xxxxxx})
//.....