Open ramonYcajal opened 7 years ago
i fix this, the problem was in the passed value in the method getRowIndex, i was passing a string and it wants an object, the code fixed is like this: $(document).on("keyup","tr",function(event){ if(event.which==9){ var table=this; console.log(editableGrid.getRowIndex(table)); // or you can also pass "this", it works too. } });
hi!! if I type jquery in console of chrome, taking the id of tr, and passing it to getRowIndex method, runs without problem but If I do the same in script, getRowIndex always returns -1 $(document).on("keyup","tr",function(event){ if(event.which==9){ var table=this; console.log($(table).attr("id")); console.log(editableGrid.getRowIndex($(table).attr("id")));