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

Customize Mouse over tooltip for RadMenuItem inside RadMenu for Disabled item

5 Answers 203 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Sreenivas
Top achievements
Rank 1
Sreenivas asked on 06 Jan 2011, 09:16 PM

Hi,
I am having issue with having tooltip only for disabled item in a list of radmenuitem.
Basically I have say A, B, C, D as items and lets say B  is disabled. So when the user (mouseover/click is also fine) on B, a tooltip should come with the text.
Thanks in advance,
Sreenivas.

<

 

telerik:RadMenu ID="CleasActionMenuControl" EnableEmbeddedSkins="true" Skin="Vista"

 

 

CausesValidation="false" Flow="Horizontal" Width="185px" ClickToOpen="false"

 

 

runat="server">

 

 

<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>

 

 

<Items>

 

 

<telerik:RadMenuItem Enabled="true" Text="Select Action">

 

 

<GroupSettings ExpandDirection="Down" Flow="Vertical" OffsetX="0" Width="185px" />

 

 

<Items>

 

 

<telerik:RadMenuItem Enabled="true" Text="A" ToolTip="" />

 

 

<telerik:RadMenuItem Enabled="false" Text="B" ToolTip="You cannot perform this action because there is a reason you can't. \nOtherwise, \nyou'll just see a really long message here in the tooltip. Unless, of course, you can't. In this case, you won't see a really long tooltip, just this." />

 

 

<telerik:RadMenuItem Enabled="true" Text="C" ToolTip="" />

 

 

<telerik:RadMenuItem Enabled="true" Text="D" ToolTip="" />

 

 

</Items>

 

 

</telerik:RadMenuItem>

 

 

</Items>

 

 

</telerik:RadMenu>

 

5 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 07 Jan 2011, 10:49 AM
Hello Sreenivas,

I tested you code, and it seemed to bring about the desired result. Can you please be more specific as to what the problem is?


All the best,
Peter
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Sreenivas
Top achievements
Rank 1
answered on 07 Jan 2011, 04:07 PM
Question 1: How to increase the Duration/time  of the tooltip.
Question 2: How can I bold the text which is inside the tooltip and change the border color.

Thanks
Sreenivas.
0
Sreenivas
Top achievements
Rank 1
answered on 07 Jan 2011, 05:21 PM
I am using version of Q3 2009 in C#.
0
Svetlina Anati
Telerik team
answered on 11 Jan 2011, 03:58 PM
Hi Sreenivas,

 The built-in tooltip of the menu is a standard browser tooltip and thus you cannot customize it in the manner you want. However, the good news is that you can accomplish the desired result by using RadToolTip - for your convenience I prepared a sample demo for you and you can find it attached to this thread.

I also recommend to examine RadToolTip demos to get a better understanding on how to configure it - you can find them below:

http://demos.telerik.com/aspnet-ajax/tooltip/examples/overview/defaultcs.aspx

I hope that my suggestion and the sample I prepared for you based on your requirements is helpful, let me know how it goes.

Regards,
Svetlina
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Sreenivas
Top achievements
Rank 1
answered on 11 Jan 2011, 08:39 PM
This works as expected. Many Thanks.
Tags
Menu
Asked by
Sreenivas
Top achievements
Rank 1
Answers by
Peter
Telerik team
Sreenivas
Top achievements
Rank 1
Svetlina Anati
Telerik team
Share this question
or