Having a bit of an issue getting access to programatically select rows in React. Based off your sample, how could I achieve that on say 'rendered' or 'initialized' events? I am getting a lot of
'Uncaught Error: cannot call methods on igGridSelection prior to initialization; attempted to call method 'selectRow''
I noticed in a previous post/response
"
Hello Pieter,
Unfortunately, it is a known issue that igGrid API calls do not work if a grid is created against <div> tag.Also, id attribute is mandatory for a igGrid placeholder."
The react component mounts itself against a div..............
Hello,
Thank you for using Infragistics forums!
While all React components for Ignite UI mount on divs, it doesn't mean you can't access the features' API. As you are using the sample available in the GitHub repo, it has a helper function defined that will return the grid's instance by ref. Using it, your selectRow call will look like this:
this.getGridInstance("grid1").element.igGridSelection("selectRow", 0);
I hope this helps! Please, let me know if you have any other questions or concerns!
Best regards,
Stamen Stoychev