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

Get the DataFieldID on tabclick

5 Answers 55 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Andy Green
Top achievements
Rank 2
Andy Green asked on 23 Dec 2008, 10:58 AM
Hi All

How do I get the value of the DataFieldID when a user clicks on a tab?

I can get the text value of the tab with e.Tab.Text, but I need the ID to do a lookup.

Andy

5 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 23 Dec 2008, 11:01 AM
Hello Andy Green,

DataFieldId is used only during databinding. This property is not mapped as any property of the tab objects. You can however set the DataValueField of the tabstrip to the same value. Then the Value property of the tabs will contain the required setting:

RadTabStrip1.DataFieldID = "MyFieldID";
RadTabStrip1.DataValueField = "MyFieldID";

Regards,
Albert
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Andy Green
Top achievements
Rank 2
answered on 23 Dec 2008, 11:30 AM
All I can get by way of a value is the field name (Database column name), not the data value, what am I doing wrong.
Andy
0
Atanas Korchev
Telerik team
answered on 23 Dec 2008, 11:34 AM
Hello Andy Green,

Did you use the Value property of the tab object?

Greetings,
Albert
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Andy Green
Top achievements
Rank 2
answered on 23 Dec 2008, 11:49 AM
Intellisense does not provide one so guess not.
I'll persevere.

Andy
0
Andy Green
Top achievements
Rank 2
answered on 23 Dec 2008, 11:57 AM
Got It

Thanks you for your time.

ANdy
Tags
TabStrip
Asked by
Andy Green
Top achievements
Rank 2
Answers by
Atanas Korchev
Telerik team
Andy Green
Top achievements
Rank 2
Share this question
or