This is a migrated thread and some comments may be shown as answers.
RadGrid RowCount
3 Answers 164 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Bruce Hochstetler
Top achievements
Rank 2
Bruce Hochstetler asked on 20 Mar 2009, 10:34 PM
Hi,

I went through several of the demos including the one about the radgrid. I was interested in getting the grid size - how many rows. When I do the second right click to drill to the parent object as stated in the demo, none of the verify items have the size specified.

I get the following in the popup menu:

            'RadGrid: client selection is not allowed.'
            'RadGrid: multi-row seleciton is not allowed.'
            'RadGrid: drag-to-select option is not enabled.'
            'RadGrid: columns reorder is not allowed.'
            'RadGrid: reorder columns is not enabled on the client.'
            'RadGrid: row resizing is not allowed.'
            'RadGrid: column resizing is not allowed.'

Is there another way to get the row count?

Thanks,
Bruce

3 Answers, 1 is accepted

Sort by
0
Konstantin
Top achievements
Rank 1
answered on 20 Mar 2009, 10:51 PM
Hi Bruce,

These are the verification quick tasks on the Grid level. You need the GridTableView (the below one) exposing the data item count verification. Locate a data cell in the table, then right-click on it to get the data item level and next right-click will give you the table one. You can also check the Verification Builder (click on "Verification" from the table context menu) and choose Item Count from the drop down.

For additional details on the Grid translators functionality I recommend you review this video on Telerik TV. You can also take a look at the RadControls Translators reference document online or open it from the start menu of WebUI Test Studio: WebUI Test Studio 1.0 -> RadControls Translators -> Reference.

Best,
Konstantin Petkov
Telerik QA, WebUI Test Studio


0
Bruce Hochstetler
Top achievements
Rank 2
answered on 20 Mar 2009, 11:03 PM
Hi Konstantin,

Man that was a quick response. Actually that was the demo I had looked at. In the demo Todd is selecting the column header to get the row count, which is exactly what I did; I was selecting the column header. But as you stated if I select a data cell, I do get the count. I guess the live demo version and the current version are probably a little different.

Thanks,
Bruce
0
Konstantin Petkov
Telerik team
answered on 23 Mar 2009, 07:14 AM
Hello Bruce,

Man that was a quick response.


Well, I was in hurry to get some sleep (it was ~1 a.m. here). ;)

I guess the live demo version and the current version are probably a little different.

That's true and I'm sorry for the confusion. Initially, the GridTableHeader translator's parent was the GridTable and that's what you see on the video. We had to change the hierarchy setting the GridTranslator as parent of the TableHeader instead to be able to support the RadGrid scrolling mode. In case you're interested, when the Grid scrolling mode is enabled, its table header row is rendered in a separat table outside the data one. The same applies for the Grid pager as well.

The RadControls Translators reference document is always up-to-date so one can always check the exact translator hierarchy and provided functionality. The online version is available here.

Please let us know if something else popup.

All the best,
Konstantin Petkov
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
Bruce Hochstetler
Top achievements
Rank 2
Answers by
Konstantin
Top achievements
Rank 1
Bruce Hochstetler
Top achievements
Rank 2
Konstantin Petkov
Telerik team
Share this question
or