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

Test sorting on a RadGrid or RadListView?

4 Answers 53 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
sitefinitysteve asked on 24 Nov 2010, 04:08 AM
What would the recommended method be to validate sort order on a Grid or List assuming Templated Views?

Doable?

4 Answers, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 25 Nov 2010, 12:18 AM
Hi Steve,

The approach for validating the sort order of a RadGrid is the same regardless if it is Templated or not. As far as WebUI is concerned it only can see HTML or Silverlight elements. It cannot see the ASP.NET or XAML that may be running on the server that generates the output that is sent to the browser.

Unfortunately it also a bit complicated and tedious. You have to click the icon to sort the column, then in a coded step read all the values contained in that column and validate their sort order. I have attached a sample test that demonstrates this process that you may use. 

Greetings,
Cody
the Telerik team
Interested in Agile Testing?

Tune in Wednesday, December 1st for a very special Webinar focused on Agile Testing. Click here to register for free!
0
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
answered on 25 Nov 2010, 02:14 AM
Well yeah, I realize I cant get at the datasource via the site :)  I was hoping though there'd be something built-in with the translators I was missing...

The problem is I have a Listview-like setup with more of a flow of items instead of a grid in which I can sort a column

Thanks for the sample :)
0
Cody
Telerik team
answered on 25 Nov 2010, 03:51 AM
Hi Steve,

I am sorry... but validating sort order via code is the only option at this time. We haven't built in sort validation into our translators. I will log it as a feature request.

Kind regards,
Cody
the Telerik team
Interested in Agile Testing?

Tune in Wednesday, December 1st for a very special Webinar focused on Agile Testing. Click here to register for free!
0
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
answered on 25 Nov 2010, 03:52 AM
Thanks Cody :)
Tags
General Discussions
Asked by
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Answers by
Cody
Telerik team
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Share this question
or