Clicking a row that is partly visible in Telerik grid

2 posts, 0 answers
  1. SKN
    SKN avatar
    2 posts
    Member since:
    Apr 2013

    Posted 09 Jun Link to this post

    Hi,

    I have a problem while trying to select a row that is partly visible in Telerik Grid using Telerik test framework.

    Below is the code snippet:

    Find<FrameworkElement>(Reference).User.Click();

    Where reference is the locator of the grid which is found by inspecting the Grid row through Silverlight Spy.

    The clicking of row fails only when the row is partly visible and works fine when the row is fully visible. Partly visible case could be a situation where only few pixels of a row is visible. Here the element is successfully found/located ; but clicking fails. Could you please help me to resolve this issue.

     

  2. Nikolay Petrov
    Admin
    Nikolay Petrov avatar
    81 posts

    Posted 14 Jun Link to this post

    Hello Sudha,

    You should try to add a line of code before the one you posted here that will scroll to visible. Here is a code example:
    Find<FrameworkElement>(Reference).ScrollToVisible();

    I hope this will solve the issue.

    Regards,
    Nikolay Petrov
    Telerik
     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
Back to Top