I have this problem. I am trying to use ("selector").igGrid("destroy") on a grid that has multi column headers. I get an error that says Uncaught TypeError: Cannot read property 'children' of undefined in infragistics.lob.js:175I am currently using https://cdn-na.infragistics.com/igniteui/2019.2/latest/js/infragistics.lob.js.
Hello,
Thank you for posting in our community.
I created a small sample trying to reproduce the behavior on your side. I added "MultiColumnHeaders" feature and afterwards tried destroying the grid using destroy method. On my side the grid was successfully destroyed without any exception thrown.Attached you will find my sample using the refences that you provided. Please test it on your side and let me know how it behaves. If this is not an accurate demonstration of what you are trying to achieve please feel free to modify it so that it replicates the behavior and send it back to me along with steps to reproduce.Looking forward to hearing from you.
2337.igGridMulticolumHeadersDestroy.zip
Greetings,
Thank you for responding. I figured out the problem, being that I also had column fixing on the grid. I found a work around by using $(selector-container).empty() and creating the table again, attaching the grid to the new table.
Hello Swan,
Thank you for getting back to me.
I was not able to reproduce the exception on my side even with Column Fixing feature enabled.
However, I am glad that you managed to achieve your requirement.Please let me know if you have any additional questions.