Unable to autoscroll RadGridView using CUIT or UIA.

10 posts, 0 answers
  1. Dharmavaram
    Dharmavaram avatar
    72 posts
    Member since:
    Jun 2013

    Posted 22 Feb Link to this post

    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.

     

  2. Stefan X1
    Admin
    Stefan X1 avatar
    514 posts

    Posted 25 Feb Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. Dharmavaram
    Dharmavaram avatar
    72 posts
    Member since:
    Jun 2013

    Posted 25 Feb in reply to Stefan X1 Link to this post

    Hi Stefan,

         

  5. Dharmavaram
    Dharmavaram avatar
    72 posts
    Member since:
    Jun 2013

    Posted 25 Feb in reply to Dharmavaram Link to this post

    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.

     

     

     

     

     

  6. Stefan X1
    Admin
    Stefan X1 avatar
    514 posts

    Posted 02 Mar Link to this post

    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
  7. Dharmavaram
    Dharmavaram avatar
    72 posts
    Member since:
    Jun 2013

    Posted 02 Mar in reply to Stefan X1 Link to this post

    Hi Stefan,

        

  8. Dharmavaram
    Dharmavaram avatar
    72 posts
    Member since:
    Jun 2013

    Posted 02 Mar Link to this post

    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.

     

     

  9. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 03 Mar Link to this post

    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
  10. Dharmavaram
    Dharmavaram avatar
    72 posts
    Member since:
    Jun 2013

    Posted 03 Mar in reply to Maya Link to this post

    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.

     

  11. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 07 Mar Link to this post

    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
Back to Top
UI for WPF is Visual Studio 2017 Ready