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

Clicking a row that is partly visible in Telerik grid

1 Answer 37 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sudha
Top achievements
Rank 1
Sudha asked on 09 Jun 2016, 12:27 PM

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.

 

1 Answer, 1 is accepted

Sort by
0
Nikolay Petrov
Telerik team
answered on 14 Jun 2016, 07:28 AM
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!
Tags
General Discussions
Asked by
Sudha
Top achievements
Rank 1
Answers by
Nikolay Petrov
Telerik team
Share this question
or