jquery - how to focus next cell in kendo grid by enter -
I want to select the next cell by pressing Enter in the center grid. And I am using the following script:
databound at function (e) {$ ("#batchgrid"). ("Focus", "TD", function (e) {var rowIndex = $ (this) .Parent (). Index (); var cellindex = $ (this). Index (); $ ("input"). ("KeyDown", function {if (event.keyCode == 13 () "$" ("#Betchgrid") .data ("cando grid"). Edit call ($ (".k-grid- Find "(" trunk "). Find (" Tables "). Find (" tr: Eq ("+ rowIndex +") ". (" Td: eq ("+ + cellIndex +") ") .next Focusin ($ ("#BatchGrid"). Data ("Kendo Grid") .closeCell ($ (".k-grid-content") .Find ("Table") .Find ("Tubby") .Fund ( "Tr: eq (" + rowIndex + ")" .Find ("td: eq (" + + cellindex + ")") .Parent ()));) Is a liar;}}};}}}
And it is my problem with this code is that when I hit the hit, it will focus on the next cell, But the previous changes will not remain on the screen (the change in the final cell will be lost in any way) I know that there is a bug with this code, I can not understand where the bug is.
Take a look at this
I click the databbound event as below. Is treated.
$ ("# list"). ("Focus", "TD", function ("keydown", function (event) {if (event.keyCode == 13) {setTimeout (function () {var curcell = $ ("# list"). (" ("K-state-selected") var eCell = $ ("# list"). ("K-edit-cell" search) curCell.removeClass ("k-state-selected"); curCell.removeClass ("Kashmir-state- AddClass ("k-state-centric"); curclell ("k-state-centric"); curclell.removeAttr ("data-role"); curCell.next (). AddClass ("k-state-selected"); curCell.next ('# List') Try data ('cendogrid'). Close cell (ECL);} Cache (former) {} $ ('# lis T') Select data (. 'KendoGrid') );; $ ('# List') data ('kendoGrid') editCell (CurCell.next ())}}, 50);}}};}); }
Comments
Post a Comment