EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
June 23, 2024, 12:27:30 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
datagrid-cellediting: cellSelected Event?
Pages: [
1
]
« previous
next »
Print
Author
Topic: datagrid-cellediting: cellSelected Event? (Read 6051 times)
korenanzo
Guest
datagrid-cellediting: cellSelected Event?
«
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
Re: datagrid-cellediting: cellSelected Event?
«
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
Re: datagrid-cellediting: cellSelected Event?
«
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
Re: datagrid-cellediting: cellSelected Event?
«
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
Re: datagrid-cellediting: cellSelected Event?
«
Reply #4 on:
March 16, 2016, 09:14:19 AM »
it is the same solution I've patched on
thanks !!
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...