It's no problem to retrieve the rows:
Element[] rows = parent.FindChildren(Role.Row);
My problem is when the Grid is filtered, I always get all rows and the rows only differ in their state ( Invisible ), for 4000 rows FindChildren runs at least 15 minutes, is there a workaround for retrieving only visible rows?
FindChildren with Infragistics-WinGrid
FindChildren with Infragistics-WinGrid
Everybody here ... comes from somewhere ...
- Support Team
- Site Admin
- Posts: 12167
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Graz, Austria
- Support Team
- Site Admin
- Posts: 12167
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Graz, Austria
If Element.IgnoreInvisible is set, the FindChildren method should skip all invisible rows. That should enhance the search performance.
Could you please check if the state of the invisible row elements is indeed State.Invisible?
Alex
Ranorex Support Team
Could you please check if the state of the invisible row elements is indeed State.Invisible?
Code: Select all
bool isInvisible = (row.State & State.Invisible) != 0;
Ranorex Support Team
I tried it with a for-loop, only the invisible rows have state:InvisibleSupport Team wrote:If Element.IgnoreInvisible is set, the FindChildren method should skip all invisible rows. That should enhance the search performance.
Could you please check if the state of the invisible row elements is indeed State.Invisible?AlexCode: Select all
bool isInvisible = (row.State & State.Invisible) != 0;
Ranorex Support Team
If I step through the children with a for-loop, the higher the count ( up to 3970 ) the worse the performance !! Even when I loop through them backwards !!
Everybody here ... comes from somewhere ...
- Support Team
- Site Admin
- Posts: 12167
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Graz, Austria
In fact, the FindChildren did not react to the Element.IgnoreInvisible property. We've fixed that bug in the current Ranorex version (1.4.0.5) available at:
http://www.ranorex.com/download.html
Regards,
Alex
Ranorex Support Team
http://www.ranorex.com/download.html
Regards,
Alex
Ranorex Support Team