menu automatically picks up sitemap description field

3 posts, 1 answers
  1. Samantha
    Samantha avatar
    50 posts
    Member since:
    May 2008

    Posted 20 Jan 2009 Link to this post

    I've noticed the menu is automatically picking up my sitemap description values and showing them as a tooltip.  How can I disable that?
  2. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 21 Jan 2009 Link to this post

    Hello Samantha,

    I hope you are populating your menu using web.sitemap file. If so you can remove the description values from the file. I used a sitemap file which looks like:
    <siteMapNode title="Home" url="Default.aspx"

    If that doesn't help, you can try out the following code to remove the ToolTip:
    cs:
    protected void RadGrid1_PreRender(object sender, EventArgs e) 
        { 
            foreach (RadMenuItem parentItem in RadMenu1.Items) 
            { 
                parentItem.ToolTip = ""
                foreach (RadMenuItem childItem in parentItem.Items) 
                { 
                    childItem.ToolTip = ""
                } 
            }        
        } 

    Thanks
    Princy.
  3. Samantha
    Samantha avatar
    50 posts
    Member since:
    May 2008

    Posted 21 Jan 2009 Link to this post

    Thanks, I used to code option, I need the descriptions in the sitemap.
Back to Top