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

menu-text as tooltip

1 Answer 40 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Savyo
Top achievements
Rank 1
Savyo asked on 18 Sep 2012, 12:36 PM
Hi,
    I would like to give tooltip to the header context menu. I want to give the menu text itself as the tool tip. How do I accomplish this. Have any idea anyone?? Please share if you have.
Savyo

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 18 Sep 2012, 12:39 PM
Hi,

Please try the following code snippet to give ToolTip for all items in HeaderContextMenu.

C#:
protected void Page_Load(object sender, EventArgs e)
{
    RadGrid1.HeaderContextMenu.ItemCreated += new RadMenuEventHandler(HeaderContextMenu_ItemCreated);
}
 
void HeaderContextMenu_ItemCreated(object sender, RadMenuEventArgs e)
{
     e.Item.ToolTip = e.Item.Text;  
}

Thanks,
Shinu.
Tags
Grid
Asked by
Savyo
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or