Title: datagrid编辑新曾一行时的bug Post by: gson on August 13, 2012, 05:44:39 AM 这个demo也会有这个问题....
http://www.jeasyui.com/tutorial/datagrid/datagrid12_demo.html# Title: Re: datagrid编辑新曾一行时的bug Post by: stworthy on August 13, 2012, 07:14:50 AM To fix this bug, please download and include the attached file in the page head. This bug will be fixed in next release version.
Code: <script type="text/javascript" src="../jquery-1.7.2.min.js"></script> Title: Re: datagrid编辑新曾一行时的bug Post by: gson on August 14, 2012, 01:00:53 AM 非常感谢....
Title: Re: datagrid编辑新曾一行时的bug Post by: l3917055 on August 22, 2012, 08:33:58 PM 这个情况也同样发生在删除行时,This also occurred in deleteRow
var tbuser=$('#id').datagrid({ ....., onDblClickRow: function (rowIndex, rowData) { tbuser.datagrid('deleteRow', rowIndex); } }); 第一次执行双击删除行,没问题。first doubleClick OK 第二次执行双击删除行,没问题。second doubleClick OK 第三次执行双击删除行,第一行的索引就是从1开始了,而不是0。third doubleClick the first row index is 1,but not 0。 作者提供的datagrid-patch.js可以解决这个问题。The author provides the datagrid-patch.js can solve this problem |