|
Title: edit row at edatagrid Post by: jaimi on September 09, 2012, 02:19:17 AM I created a toolbar with several buttons like this:
<a href="#" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="javascript:$(\'#dag_project\').edatagrid(\'addRow\')">zufügen</a> <a href="#" class="easyui-linkbutton" iconCls="icon-edit" plain="true" onclick="javascript:$(\'#dag_project\').edatagrid(\'editRow\')">ändern</a> The Update (edit) button does not work. I can only edit a row by double clicking on the row within the edatagrid. What/where I have to modify? Title: Re: edit row at edatagrid Post by: stworthy on September 09, 2012, 03:18:25 AM When calling the 'editRow' to edit a row, the 'index' parameter must be passed to indicate what row will be edited. For example, running the code below will begin editing the third row(the row index start with 0).
$('#dag_project').edatagrid('editRow', 2); Title: Re: edit row at edatagrid Post by: jaimi on September 10, 2012, 03:07:10 AM Thanks, I found where to set it.
|