Kendo Grid Sorting

2 posts, 0 answers
  1. Rosi Reddy
    Rosi Reddy avatar
    1 posts
    Member since:
    Jan 2013

    Posted 21 Aug 2014 Link to this post

    Can you please provide sample code for Kendo Grid Sorting?
    I didn't find a way to test this scenario.
  2. Boyan Boev
    Admin
    Boyan Boev avatar
    1040 posts

    Posted 26 Aug 2014 Link to this post

    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
     
Back to Top