This is a migrated thread and some comments may be shown as answers.

menu automatically picks up sitemap description field

2 Answers 61 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Samantha
Top achievements
Rank 1
Samantha asked on 20 Jan 2009, 09:29 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 21 Jan 2009, 06:40 AM
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.
0
Samantha
Top achievements
Rank 1
answered on 21 Jan 2009, 11:21 AM
Thanks, I used to code option, I need the descriptions in the sitemap.
Tags
Menu
Asked by
Samantha
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Samantha
Top achievements
Rank 1
Share this question
or