This is a migrated thread and some comments may be shown as answers.

Unable to autoscroll RadGridView using CUIT or UIA.

9 Answers 121 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Dharmavaram
Top achievements
Rank 1
Dharmavaram asked on 23 Feb 2016, 05:04 AM

Hi,

  We are trying to automate RADGridView using CUIT and AutomationElement but we are unable to auto scroll to required row. I have searched in the net and I found this article(http://docs.telerik.com/teststudio/advanced-topics/coded-samples/silverlight/radgridview-automation/scrolling) related to GridView for Sliverlight applications. Is there similar type of the code or any fix for WPF RadGridView? Any help to solve this problem is greatly appreciated.

 

Regards,

Nagasree.

 

9 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 25 Feb 2016, 04:43 PM
Hi Nagasree,

The built-in mechanism for scrolling to a given row/column of RadGridView is demonstrated in the Scroll to particular row or column help topic. Can you please check it out?

Would it also be possible for you to share some details on the exact test scenario that you are trying to fulfil, as I was not able to completely understand that from the provided link?

Best Regards,
Stefan X1
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Dharmavaram
Top achievements
Rank 1
answered on 26 Feb 2016, 05:10 AM

Hi Stefan,

     

0
Dharmavaram
Top achievements
Rank 1
answered on 26 Feb 2016, 05:23 AM

Hi Stefan,

We are trying to automate RadGridView control using CUIT and UIA and we are unable to find the control until we scroll up to the control.

Try to do  automation on the last row of the RadGridView when scrollbar exist using any automation tool.The script fails saying unable to click on the row control.

If still need any information to understand the problem,ask us.

Regards,

Nagasree.

 

 

 

 

 

0
Stefan
Telerik team
answered on 02 Mar 2016, 07:59 AM
Hello Nagasree,

Thanks for the update.

I understand the goal you’re aiming at and we’ve previously researched whether this can be achieved. Due to the virtualized nature of the control, I’m afraid there are several limitations such scrolling functionality to be implemented and I could not offer a possible workaround.

Feel free to contact us in case you have any other questions on our controls.

All the best,
Stefan X1
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Dharmavaram
Top achievements
Rank 1
answered on 02 Mar 2016, 09:48 AM

Hi Stefan,

    

0
Dharmavaram
Top achievements
Rank 1
answered on 02 Mar 2016, 10:03 AM

Hi Stefan,

      Thanks for your response.We have to plan to automate our application which have Telerik controls.I have even checked with Telerik test studio to automate this control even it is failed.Is there any tool that support automation of this control??

In one of the link they provided the information that UI Automation includes two control patterns to enable clients to work with virtualized items: ItemContainer and VirtualizedItem.I have tried to use this patterns to scroll the control but this patterns are also not available on this RADGridView control.

The link is https://msdn.microsoft.com/en-us/library/windows/desktop/ee684094%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396

Please provide any information about any patterns that help me to achieve this functionality

Regards,

Nagasree.

 

 

0
Maya
Telerik team
answered on 03 Mar 2016, 12:01 PM
Hi Dharmavaram,

We did try to implement the pattern but the thing is that it is designed by Microsoft to be used by ItemsControl. However, RadGridView is not such and we had a lot of difficulties in resolving all the issues that come with the implementation that led to breaking the default behavior. 
Still, I will discuss the case once again within the team to verify whether the state of the issue is still the same or there are improvements from the way Coded UI should be supported by custom controls. 


Regards,
Maya
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Dharmavaram
Top achievements
Rank 1
answered on 03 Mar 2016, 12:09 PM

Hi Maya,

   Thanks for the reply.We have to take a decision as soon as possible.Please let me know the status as early as possible.

Regards,

Nagasree.

 

0
Maya
Telerik team
answered on 07 Mar 2016, 02:48 PM
Hello Dharmavaram,

We discussed again the issue and research it one more time. Since RadGridView is not an ItemsControl, it cannot benefit directly from the basic implementation. We did try to reuse it, but it contains code that is internal and cannot be utilized in third-party assembly. 
Nevertheless, we logged the issue for further, more profound research and we will do our best to find a solution to the problem. However, based on what we know so far, we cannot commit to any specific time frame or success since we depend on the default Microsoft implementation of the Coded UI. 

Regards,
Maya
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
GridView
Asked by
Dharmavaram
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Dharmavaram
Top achievements
Rank 1
Maya
Telerik team
Share this question
or