Get the DataFieldID on tabclick

6 posts, 0 answers
  1. Andy Green
    Andy Green avatar
    342 posts
    Member since:
    Aug 2008

    Posted 23 Dec 2008 Link to this post

    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
  2. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 23 Dec 2008 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Andy Green
    Andy Green avatar
    342 posts
    Member since:
    Aug 2008

    Posted 23 Dec 2008 Link to this post

    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
  5. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 23 Dec 2008 Link to this post

    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.
  6. Andy Green
    Andy Green avatar
    342 posts
    Member since:
    Aug 2008

    Posted 23 Dec 2008 Link to this post

    Intellisense does not provide one so guess not.
    I'll persevere.

    Andy
  7. Andy Green
    Andy Green avatar
    342 posts
    Member since:
    Aug 2008

    Posted 23 Dec 2008 Link to this post

    Got It

    Thanks you for your time.

    ANdy
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017