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

ID menu

11 posts, 0 answered
  1. Marcus
    Marcus avatar
    45 posts
    Registered:
    02 Jul 2010
    09 Dec 2010
    Link to this post

    Hi,

    where I find the ID of each <li> my menu?

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    09 Dec 2010
    Link to this post
    Hello Marcus,

    RadMenu generates a <li> element with a class only. What is the desired result?

    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. Marcus
    Marcus avatar
    45 posts
    Registered:
    02 Jul 2010
    09 Dec 2010
    Link to this post

    Because I wish to state a selected menu, I know only in javascript to do this kind of effect!

    When the user is in a given page to indicate the menu in a different way from others.

    Further to this I would call or put an ID for each <li>

  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    09 Dec 2010
    Link to this post
    Hello Marcus,

    You can use css selectors - rmSelected ( in Sitefinity).

    Kind regards,
    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
  5. Marcus
    Marcus avatar
    45 posts
    Registered:
    02 Jul 2010
    09 Dec 2010
    Link to this post

    Sorry Ivan, I do not understand how to implement the ImageClickedUrl!

    For it is they who will make this action I need.

  6. Marcus
    Marcus avatar
    45 posts
    Registered:
    02 Jul 2010
    09 Dec 2010
    Link to this post

    I am using the tab strip, later add the command by 

    <Tabs>     
          <telerik:RadTab runat="server"  SelectedImageUrl="~\App_Themes\NewIntranet\Tabstrip\item_selected.jpg"   >
       </telerik:RadTab>
     </Tabs>

     it worked!

    How can I later add the remaining items?

  7. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    09 Dec 2010
    Link to this post
    Hi Marcus,

    You can work programmatically

    sample

    foreach (RadTab t in RadTabstrip1.GetAllTabs())
    {
        if (t.Text == "tab1")
        {
            t.SelectedImageUrl = "path ot your image";
        }
        if (t.Text == "tab2")
        {
            t.SelectedImageUrl = "path ot your image";
        }
    }


    All the best,
    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
  8. Marcus
    Marcus avatar
    45 posts
    Registered:
    02 Jul 2010
    10 Dec 2010
    Link to this post

    HI,

    Ivan, could use the. Cs the TabStrip to make only once

    protected void Page_Load(object sender, EventArgs e)
        {
            if (this.ShowOnlyFirstLevel)
            {
                SiteMapNode rootNode = SiteMap.RootNode;
                foreach (SiteMapNode node1 in rootNode.ChildNodes)
                {
                    RadTab tab = new RadTab();
                    tab.Text = node1.Title;
                    tab.NavigateUrl = node1.Url;
                    tab.SelectedCssClass = "xxxx";

     But as the use tab.SelectedCssClass that in all the menu options stay in the format selected!

  9. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    10 Dec 2010
    Link to this post
    Hi Marcus,

    From the description you provided I cannot understand what the problem is now. Can you provide some more details?

    Regards,
    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
  10. Marcus
    Marcus avatar
    45 posts
    Registered:
    02 Jul 2010
    10 Dec 2010
    Link to this post

    How can I do to get my theme of my class in the file
    SiteTabstrip.ascx.cs?

    Because if I call it tab.selectdImageURL One appears on all menu options

     As Imagen below!

     

    How do I do to bring him to class in my style?
    How do I use Tab.SelectedCssClass

     No need to do programmatically!

  11. Marcus
    Marcus avatar
    45 posts
    Registered:
    02 Jul 2010
    10 Dec 2010
    Link to this post

    I declared my own class in the ascx file!

    Well it would be pulling the themes folder, most has been resolved for now!

Register for webinar
11 posts, 0 answered