+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Smart Tag on RadTabStrip

Smart Tag on RadTabStrip

4 posts, 0 answered
  1. Darren
    Darren avatar
    15 posts
    Registered:
    06 Oct 2010
    06 Dec 2010
    Link to this post
    Hi All

    I am trying to add unique classes or id's to each element in my navigation strip. I have read and been guided towards using the RadTabStrip control in my template and then editing it using the Smart Tag link.

    http://www.telerik.com/help/aspnet-ajax/tab_gettingstarted.html

    This sounds like what I am trying to achieve but when I add the RadTabStrip to my masterpage through the Sitefinity UI I don't get the Smart Tag link displaying.

    Is there something I am missing as this seems as though it should be straight forward enough but I'm just not getting the options. I just get a normal edit link, not a Smart Tag.

    Thanks
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    06 Dec 2010
    Link to this post
    Hi Darren,

    Sitefinity UI and our ControlDesigner does not wrap the "Smart tag" of RadTabStrip Control. Smart tag is supposed to be used only in development environment. Our control designer expose all public properties of a control which you can set through the Control Designer.

    Best wishes,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Darren
    Darren avatar
    15 posts
    Registered:
    06 Oct 2010
    07 Dec 2010
    Link to this post
    Hi Ivan

    Does this mean that by using the Sitefinity UI and the Control Designer I can apply individual classes to each navigation item? If so how is this done. I have been trying to get this solved for the best part of a week and I'm really not getting anywhere so any help would be appreciated.

    Thanks
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    07 Dec 2010
    Link to this post
    Hi Darren,

    The control designer expose public properties, not data items from the collection. You need to set a css class to each item programmatically where you bind the control.

    if (this.RadTabstrip1.Tabs.Count > 0)
    {
        foreach (RadTab t in RadTabstrip1.GetAllTabs())
        {
            if (t.Text == "tab1")
            {
                t.CssClass = "someclass";
            }
        }


    Greetings,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Register for webinar
4 posts, 0 answered