Title: Check if a cell has focus Post by: thiago_brum 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'); Title: Re: Check if a cell has focus Post by: stworthy 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'); |