We are using IGGrid in a React app. In this app when we reorder the columns in the grid and go into edit mode on a cell in the reorderd column and press tab to select next cell, IgGrid is throwing below error:
infragistics.lob.js:500 Uncaught TypeError: Cannot read property 'data' of nullat $.<computed>.<computed>._closeEditingForRow (infragistics.lob.js:500)at $.<computed>.<computed>._closeEditingForRow (jquery-ui.js:401)at $.<computed>.<computed>._endEdit (infragistics.lob.js:500)at $.<computed>.<computed>._endEdit (jquery-ui.js:401)at $.<computed>.<computed>._navigateRightForCell (infragistics.lob.js:500)at $.<computed>.<computed>._navigateRightForCell (jquery-ui.js:401)at $.<computed>.<computed>._navigateRight (infragistics.lob.js:500)at $.<computed>.<computed>._navigateRight (jquery-ui.js:401)at $.<computed>.<computed>._navigateElement (infragistics.lob.js:500)at $.<computed>.<computed>._navigateElement (jquery-ui.js:401)at $.<computed>.<computed>._editorKeyDown (infragistics.lob.js:499)at $.<computed>.<computed>._editorKeyDown (jquery-ui.js:401)at Object.i [as keyDown] (jquery.min.js:4)at Class.keyDown (infragistics.lob.js:142)at HTMLSpanElement.i (jquery.min.js:4)at $.<computed>.<computed>._trigger (jquery-ui.js:785)at $.<computed>.<computed>._triggerKeyDown (infragistics.lob.js:93)at $.<computed>.<computed>._triggerKeyDown (jquery-ui.js:401)at HTMLInputElement.keydown.editor (infragistics.lob.js:92)at HTMLInputElement.dispatch (jquery.min.js:5)at HTMLInputElement.y.handle (jquery.min.js:5)
It only happens with text based columns, the columns that have igcombo bound works fine.
Hello,
Could you please share a sample reproducing this, or at least your grid initialization code along with any event handlers?
Thank you for using Infragistics forums!
Best regards,
Stamen Stoychev
Hi
Attaching the initialization code. Please let me know if you need anything more.
Thanks,
Nitheesh
gridInitializationProps.txt
Hello Nitheesh,
I created a small sample using your code and the latest version of Ignite UI and couldn't reproduce the issue. I am attaching it for your reference.
Could you please modify it so that it reproduces?
Alternatively, I noticed you define some events that you may have handlers for but they are not part of the code you provided. In the handler of one of them in particular (editCellEnding) you may be doing something with the Updating editors that causes the error. The error itself indicates that Updating can't find the editor instance for one of the editors to remove it from the cell when editing has to end.
ig-grid.zip