EasyUI Forum
May 04, 2024, 12:34:09 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: editable datagrid's editor on clicked not select the row?  (Read 5603 times)
cdtuql
Newbie
*
Posts: 26


View Profile Email
« on: January 06, 2015, 03:21:34 AM »

in editable datagrid ,I click on the cololumn's editor, but it's not select the row ,I want to select the row also when i click on the editor ? is there any way ?
Logged
fengguangyin
Newbie
*
Posts: 5


View Profile Email
« Reply #1 on: June 09, 2015, 12:49:05 AM »

I want to know too? Anyone knows?
Logged
fengguangyin
Newbie
*
Posts: 5


View Profile Email
« Reply #2 on: June 09, 2015, 02:30:05 AM »

I find this way.

$(".datagrid").on("focus","input",function(e){
            var dgRowIndex = $(this).parents(".datagrid-row-editing").attr("datagrid-row-index");
            $('#order_sale_datagrid').datagrid("selectRow",dgRowIndex);
         });
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!