EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: korenanzo on March 15, 2016, 09:16:35 AM



Title: datagrid-cellediting: cellSelected Event?
Post by: korenanzo on March 15, 2016, 09:16:35 AM
Hi,

I am using datagrid-cellediting;

When I move by the cursor keys,  i need to know where I am now:

is there an event fired when a cell (NOT editable or in edit mode) is selected?

Thanks,
RIc


Title: Re: datagrid-cellediting: cellSelected Event?
Post by: stworthy on March 15, 2016, 08:23:32 PM
You can call 'cell' method to get the current highlighted cell information:
Code:
var cell = $('#dg').datagrid('cell');
console.log(cell);


Title: Re: datagrid-cellediting: cellSelected Event?
Post by: korenanzo on March 16, 2016, 12:55:12 AM
I know the .datagrid('cell') method, anyway

I need to know that the user has selected a cell in the moment he did it:

if he uses the mouse, I have the onClickCell () but if he uses the cursor keys (  enableCellSelecting ) I don't have anything.


Title: Re: datagrid-cellediting: cellSelected Event?
Post by: stworthy on March 16, 2016, 08:41:19 AM
The 'onSelectCell' event is available, which will be triggered when selecting a cell. Be sure to download the newest 'datagrid-cellediting.js' file from http://www.jeasyui.com/extension/datagrid_cellediting.php


Title: Re: datagrid-cellediting: cellSelected Event?
Post by: korenanzo on March 16, 2016, 09:14:19 AM
it is the same solution I've patched on :)

thanks !!