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

Why Doesn't Each Have an 'ID' Property?

1 Answer 37 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 24 Jan 2012, 09:50 PM
I'm in the process of switching over all references to the AJAX Control Toolkit to using your controls.  On one of my pages I use their TabContainer.  In my work I discovered that the RadTab control does not have an "ID" property.  Why was this excluded?

In my existing code I have one event handler method to do assorted things when the user switches tabs.  It needs to differentiate between each tab.  Oh sure, what I'll just do is look for the Text property of the tab but if that text ever changes then the code will break unless I go through and search & replace all references to the tab's text value.

Which brings us full circle: Why does each RadTab not have an ID property?

1 Answer, 1 is accepted

Sort by
0
Kate
Telerik team
answered on 27 Jan 2012, 12:49 PM
Hello Robert,

Instead of the Text property you can use the Value property of the tabs and assign a unique value to each one of them. Thus you can use the FindTabByValue property to access them later.

All the best,
Kate
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 RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
TabStrip
Asked by
Robert
Top achievements
Rank 1
Answers by
Kate
Telerik team
Share this question
or