EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: cdtuql on January 06, 2015, 03:21:34 AM



Title: editable datagrid's editor on clicked not select the row?
Post by: cdtuql 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 ?


Title: Re: editable datagrid's editor on clicked not select the row?
Post by: fengguangyin on June 09, 2015, 12:49:05 AM
I want to know too? Anyone knows?


Title: Re: editable datagrid's editor on clicked not select the row?
Post by: fengguangyin 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);
         });