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

[Solved] Need ids for controls

1 Answer 13 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Paul
Top achievements
Rank 1
Paul asked on 01 Jun 2012, 08:59 PM
We have a Coded UI Project that stores tests (controls, assertions etc.) in a compact db (SQL Server Ce).  We have an MVC project that we  incorporated the Coded UI tests project into.  The tests are then run as part of the build process of the MVC project.   

The problem we are having is that the tests expects all controls to have an Id.  Looking at the properties for controls inside a telerik grid  (href, cell, paging etc.), Id is not an option.    Can anyone suggest a way to work around or a way we can add ids?

Here is a rendered link with in a grid cell that we can't "id"entify...

<td><a href="/SomeDataSet/Edit/2">waka waka</a></td>

1 Answer, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 04 Jun 2012, 07:44 AM
Hi Paul,

Basically there is an ID assigned only to the component itself. That ID is the set via the Name() method provided by the fluent API for each component.
The HTML elements (rows,cells, header elements, pagination elements etc.) used inside the Grid do not have IDs - we do not support generating them and there is no work-around to set them.

Greetings,
Petur Subev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now.
Tags
Grid
Asked by
Paul
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Share this question
or