Hi,
I am using Dev Express Grid in my application. It contains around 10000 rows. I need only the filter row in the data grid. I took the rx path of filter row in my c# code. But it took around 2 minutes to identify the row. Is there any way to get only the filter row without allowing ranorex to enumerate through all rows? I am providing you my code here.
Table t = "rx path of grid";
Row r = t.FindSingle<Row>("container[@accessiblename='Data Panel']/row[@accessiblename='Filter Row and @visible='True']"); //This line takes around 2 minutes and am able to get the row after 2 minutes.
As you can see the code here, i need only the filter row here. If the data grid contains only few rows, the above statement took only few seconds. But for 10000 rows its taking long time.
Even if i use cache context, the first access will take long time and i dont want that. Please help me out.
Regards,
Siva R S
How to improve performance of Ranorex on DevExpress DataGrid
-
- Posts: 62
- Joined: Wed Mar 09, 2011 4:40 pm
-
- Posts: 62
- Joined: Wed Mar 09, 2011 4:40 pm
Re: How to improve performance of Ranorex on DevExpress DataGrid
Hi Support team,
Any update on my question? Am waiting for your reply
Regards,
Siva R S
Any update on my question? Am waiting for your reply

Regards,
Siva R S
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: How to improve performance of Ranorex on DevExpress DataGrid
Hi,
Could you please verify, how long Spy searches for this element? Would it be maybe possible to post us a Ranorex Snapshot to check if the RxPath you use is the fastest?
Thanks in advance.
Regards,
Peter
Ranorex Team
If you have 10000 rows inside your grid, Ranorex needs time to get your specific row, because this is not the smallest table.vengaishiva wrote:Any update on my question? Am waiting for your reply![]()

Could you please verify, how long Spy searches for this element? Would it be maybe possible to post us a Ranorex Snapshot to check if the RxPath you use is the fastest?
Thanks in advance.
Regards,
Peter
Ranorex Team
-
- Posts: 62
- Joined: Wed Mar 09, 2011 4:40 pm
Re: How to improve performance of Ranorex on DevExpress DataGrid
Hi
Unfortunately, i cant provide you the snapshot of application as it is in a secured location. However i can provide you the rxpaths
rx path of table : /form[@controlname='MainForm']/element/container/container/container/container/container/element/table[@accessiblename='Error message']
rx path of filter row :
container[@accessiblename='Data Panel']/row[@accessiblename='Filter Row']
Please note that the rx path of filter row above is the relative path (since am calling t.FindSingle<Row> in my code in the original post)
The filter row is the first row in the container 'data panel'. I need only this row. So why there is a need of ranorex going through all 10000 rows before giving me the required row, in the code.
i.e FindSingle method should stop whenever it identifies the correct row. It should not loop through all rows.
This way, since the filter row is the first row, find single method will return me the required row immediately.
Regards,
Siva R S
The spy is taking almost 2 minutes to track and construct the tree of rows.vengaishiva wrote:Could you please verify, how long Spy searches for this element?
Would it be maybe possible to post us a Ranorex Snapshot to check if the RxPath you use is the fastest?
Unfortunately, i cant provide you the snapshot of application as it is in a secured location. However i can provide you the rxpaths
rx path of table : /form[@controlname='MainForm']/element/container/container/container/container/container/element/table[@accessiblename='Error message']
rx path of filter row :
container[@accessiblename='Data Panel']/row[@accessiblename='Filter Row']
Please note that the rx path of filter row above is the relative path (since am calling t.FindSingle<Row> in my code in the original post)
The filter row is the first row in the container 'data panel'. I need only this row. So why there is a need of ranorex going through all 10000 rows before giving me the required row, in the code.
i.e FindSingle method should stop whenever it identifies the correct row. It should not loop through all rows.
This way, since the filter row is the first row, find single method will return me the required row immediately.
Regards,
Siva R S
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: How to improve performance of Ranorex on DevExpress DataGrid
Hi,
Please take a look to following answer of Alex. The same is valid for you datagird
http://www.ranorex.com/forum/performanc ... html#p2508
Regards,
Peter
Ranorex Team
Please take a look to following answer of Alex. The same is valid for you datagird
http://www.ranorex.com/forum/performanc ... html#p2508
Regards,
Peter
Ranorex Team