
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
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
0
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.
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
Andy
0
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.
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
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
Thanks you for your time.
ANdy