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

Kendo Grid Sorting

1 Answer 54 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Rosi Reddy
Top achievements
Rank 1
Rosi Reddy asked on 22 Aug 2014, 03:22 AM
Can you please provide sample code for Kendo Grid Sorting?
I didn't find a way to test this scenario.

1 Answer, 1 is accepted

Sort by
0
Boyan Boev
Telerik team
answered on 26 Aug 2014, 01:43 PM
Hello Rosi,

Thank you for contacting us.

To sort a column in the gird you just need simply to click on the header of the column. Here is example code which sorts "Contact Title" in our Kendo demo site.

HtmlTable table = ActiveBrowser.Find.ByExpression<HtmlTable>("role=grid");
HtmlAnchor sortLink = table.Find.ByContent<HtmlAnchor>("Contact Title");
sortLink.MouseClick();

Let me know if this helps.

Regards,
Boyan Boev
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
Tags
General Discussions
Asked by
Rosi Reddy
Top achievements
Rank 1
Answers by
Boyan Boev
Telerik team
Share this question
or