EasyUI Forum
June 23, 2024, 12:27:30 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: datagrid-cellediting: cellSelected Event?  (Read 6051 times)
korenanzo
Guest
« 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
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 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);
Logged
korenanzo
Guest
« Reply #2 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.
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #3 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
Logged
korenanzo
Guest
« Reply #4 on: March 16, 2016, 09:14:19 AM »

it is the same solution I've patched on Smiley

thanks !!
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!