EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
May 09, 2024, 05:14:36 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
>
Check if a cell has focus
Pages: [
1
]
« previous
next »
Print
Author
Topic: Check if a cell has focus (Read 3150 times)
thiago_brum
Newbie
Posts: 26
Check if a cell has focus
«
on:
June 18, 2018, 10:54:25 AM »
How can I check if a cell of eDataGrid has the focus?
onBeginEdit:function(rowIndex,row){
var editors = $('#datagrid_item_pedido').datagrid('getEditors', rowIndex);
var pre_unitario_final = $(editors[1].target);
pre_unitario_final.numberbox({
onChange: function(newValue,oldValue) {
if (pre_unitario_final.is(":focus")) { // DOSN'T WORK
console.log('focus');
Logged
stworthy
Administrator
Hero Member
Posts: 3581
Re: Check if a cell has focus
«
Reply #1 on:
June 18, 2018, 08:44:10 PM »
Call the 'textbox' method to get the inputing box.
Code:
var input = pre_unitario_final.numberbox('textbox');
if (input.is(":focus")){
...
}
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...