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

Getting radGrid's content

2 Answers 80 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.
Juho Saarinen
Top achievements
Rank 1
Juho Saarinen asked on 25 Nov 2009, 11:35 AM
I have created bunch of UI tests with WebAii framework, and used some of those in system tests too. But now I have quite big problem: I can't get the radgrid's content any easy way to eg. datatable (or some other format, that's possible to compare with results from DB too).

Is there some methods for that in WebAii, or do I just need to get the data cell by cell (this is quite slow, I have made some implementation with this kind of action)?

2 Answers, 1 is accepted

Sort by
0
Missing User
answered on 25 Nov 2009, 03:49 PM
Hello Juho,

So in the framework, you would have to write your own code to do this using the RadGrid control, then iterate through the rows and cells you wanted to get values for. You can use your own data base connection implementation to get your data, but the templates should also be compatable with Visual Studio's data driven unit test feature.

Best wishes,
Nelson Sin
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Juho Saarinen
Top achievements
Rank 1
answered on 26 Nov 2009, 05:41 AM
Thank you for confirmation, I was actually little afraid that this cell-by-cell would be the only option. At least if the grid's cells were inputs (you could edit cell by just clicking it, and you can edit it in it's place). Maybe this "static" grid would be faster to get (hopefully...).
Tags
General Discussions
Asked by
Juho Saarinen
Top achievements
Rank 1
Answers by
Missing User
Juho Saarinen
Top achievements
Rank 1
Share this question
or