EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: dayat on December 09, 2013, 07:29:25 PM



Title: 'onDblClickRow' function on the datagrid
Post by: dayat on December 09, 2013, 07:29:25 PM
how to doubleclick a row in the DataGrid displays a dialog


Title: Re: 'onDblClickRow' function on the datagrid
Post by: stworthy on December 09, 2013, 11:22:18 PM
Code:
$('#dg').datagrid({
onDblClickRow:function(){
//open your dialog
}
});


Title: Re: 'onDblClickRow' function on the datagrid
Post by: dayat on December 10, 2013, 01:54:50 AM
thanks for the reply.
I want to modify the application at http://jeasyui.com/tutorial/app/crud/index.html.
I want when doubleclick on a DataGrid row. will displays a "form edit data"


Title: Re: 'onDblClickRow' function on the datagrid
Post by: dayat on December 10, 2013, 05:19:12 PM
I still have not successfully apply the code.  Can you give examples of code into applications


Title: Re: 'onDblClickRow' function on the datagrid
Post by: stworthy on December 10, 2013, 07:13:00 PM
Please try this.
Code:
<table id="dg" title="My Users" class="easyui-datagrid" style="width:700px;height:250px"
data-options="
url:'get_users.php',
toolbar:'#toolbar',
pagination:true,
rownumbers:true,
fitColumns:true,
singleSelect:true,
onDblClickRow:function(){
editUser();
}
">
...
</table>


Title: Re: 'onDblClickRow' function on the datagrid
Post by: dayat on December 11, 2013, 05:38:23 PM
thank you for your help