天天看點

easyUI comboGrid設定Value和Text

easyUI的comboGrid設定值,不能像textbox一樣簡單的setValue和setText,查閱官方文檔後可以發現如下代碼:

$('#cc').combogrid('setValue', '002');
$('#cc').combogrid('setValue', {id:'003',name:'name003'});      

由此可知設定值有兩種方式,其中第二種就是設定值和text的方法。

繼續閱讀