I have a tree grid with multiple rows and I added a new Row by a button action and once the row gets added to the grid, how to focus the newly added row
and how to programmatically scroll to a row that is not in the view
Thank you for posting in our community.
My suggestion is to listen for the onRowAdded event of the igxTreeGrid component and then to use the navigateTo method. I crated a small sample illustrating my approach, which you can find here. Please test it on your side and let me know whether you find it helpful.
Please let me know if you have any further questions or concerns.
Entry Level Software Developer
Hello Mani, Yesterday I noticed an activity in the forum post, however today I am not able to see your response. As far as I understood, you mentioned an issue with pushing the newly added row in igxTreeGrid.dataView array. After further investigation, I determined that if a new row is added in the grid the dataView array is successfully updated. I created a sample where if you add row the new length of the dataView array is logged in the console. If I missed something from your reply, can you please repost it.