Customize Mouse over tooltip for RadMenuItem inside RadMenu for Disabled item

6 posts, 0 answers
  1. Sreenivas
    Sreenivas avatar
    12 posts
    Member since:
    Jul 2008

    Posted 06 Jan 2011 Link to this post

    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>

     

  2. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 07 Jan 2011 Link to this post

    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.
  3. Sreenivas
    Sreenivas avatar
    12 posts
    Member since:
    Jul 2008

    Posted 07 Jan 2011 Link to this post

    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.
  4. Sreenivas
    Sreenivas avatar
    12 posts
    Member since:
    Jul 2008

    Posted 07 Jan 2011 Link to this post

    I am using version of Q3 2009 in C#.
  5. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 11 Jan 2011 Link to this post

    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.
  6. Sreenivas
    Sreenivas avatar
    12 posts
    Member since:
    Jul 2008

    Posted 11 Jan 2011 Link to this post

    This works as expected. Many Thanks.
Back to Top