EasyUI Forum
April 18, 2024, 10:28:23 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: 'onDblClickRow' function on the datagrid  (Read 28172 times)
dayat
Newbie
*
Posts: 8


View Profile Email
« on: December 09, 2013, 07:29:25 PM »

how to doubleclick a row in the DataGrid displays a dialog
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: December 09, 2013, 11:22:18 PM »

Code:
$('#dg').datagrid({
onDblClickRow:function(){
//open your dialog
}
});
Logged
dayat
Newbie
*
Posts: 8


View Profile Email
« Reply #2 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"
Logged
dayat
Newbie
*
Posts: 8


View Profile Email
« Reply #3 on: December 10, 2013, 05:19:12 PM »

I still have not successfully apply the code.  Can you give examples of code into applications
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #4 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>
Logged
dayat
Newbie
*
Posts: 8


View Profile Email
« Reply #5 on: December 11, 2013, 05:38:23 PM »

thank you for your help
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!