|
Title: Setting value for datagrid bug Post by: JohnWang on December 05, 2014, 08:43:27 PM Dear admins:
When I upgraded jQueryEasyUI 1.3.6 to 1.4.1, I found something wrong in my project. Code: {field:'xxxId', title:'YYY', hidden:'true', align:'center', width:50, editor:'text'},And then when I saved my data, I found "row.xxxId" is null in 1.4.1. So I changed my code to use "$(ed.target).numberbox('setValue', rec.id)", and it worked. Title: Re: Setting value for datagrid bug Post by: gongjw123 on January 29, 2015, 11:23:38 PM I met the same problem.My solution is get the editor object in the ondbclickrow event of the datagrid and then bind the event function .
your example var ed = $('#dataForm').datagrid('getEditor', {index:editIndex, field:'xxxId'}); the "ed" is null |