Completed
Last Updated: 20 Feb 2014 15:29 by ADMIN
ADMIN
Dess | Tech Support Engineer, Principal
Created on: 18 Oct 2013 06:41
Category: UI Framework
Type: Bug Report
0
FIX. RadDropDownButtonElement - AutoToolTip does not take effect over RadDropDownButtonElement
To reproduce:
-add RadRibbonBar with RadDropDownButtonElement and use the following code:
 this.radDropDownButtonElement1.AutoToolTip = true;
 this.radDropDownButtonElement1.ToolTipText = "tooltip";

As a result, no tool tip has been shown.

Workaround:
public Form1()
{
    InitializeComponent();

    this.radRibbonBar1.ToolTipTextNeeded += radRibbonBar1_ToolTipTextNeeded;
    this.radDropDownButtonElement1.ToolTipText = "tooltip";
}


private void radRibbonBar1_ToolTipTextNeeded(object sender, Telerik.WinControls.ToolTipTextNeededEventArgs e)
{
    ActionButtonElement actionButton = sender as ActionButtonElement;
    RadArrowButtonElement arrowButton = sender as RadArrowButtonElement;

    if (actionButton != null)
    {
        e.ToolTipText = ((RadDropDownButtonElement)actionButton.Parent.Parent).ToolTipText;
    }
    else if (arrowButton!=null)
    {
        e.ToolTipText = ((RadDropDownButtonElement)arrowButton.Parent.Parent).ToolTipText;
    }
}
0 comments