RadToolTipManager border color not working

8 posts, 1 answers
  1. Chamira
    Chamira avatar
    78 posts
    Member since:
    Nov 2007

    Posted 06 May 2009 Link to this post

    These are my ASPX code and CSS code... i am unable to get the border color to appear even after i set the border width and border color manually ( on the aspx page )

                                 <telerik:RadToolTipManager CssClass="ToolTipContent" ID="RadToolTipManager1" runat="server" 
                                        AutoCloseDelay="200000" ContentScrolling="Both" Height="360px" HideEvent="LeaveTargetAndToolTip" 
                                        MouseTrailing="True" OnAjaxUpdate="OnAjaxUpdate" Position="MiddleRight" 
                                        RelativeTo="BrowserWindow" ShowDelay="300" Width="410px" BackColor="Transparent" ManualClose="True"   > 
                                        </telerik:RadToolTipManager> 

    CSS Class
       .ToolTipContent   
            {   
                background-color:#DCD2BE !important;       
                        color:Black !important;       
                        font-size:0.8em !important;    
                          
                        border-color:#DCD2BE !important;    
                        border-width:thick !important;  
            }  

    Thankx in advance
  2. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 08 May 2009 Link to this post

    Hello Chamira,

    You can try setting the following code in the css style to display a border color for the ToolTip:
    css:
    <style type="text/css">   
     div.radtooltip_Default  
    {     
        bordersolid 1px Red !important;     
    }  
    </style>   
     

    Thanks
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Chamira
    Chamira avatar
    78 posts
    Member since:
    Nov 2007

    Posted 11 May 2009 Link to this post

    thanks a lot princy
  5. Chamira
    Chamira avatar
    78 posts
    Member since:
    Nov 2007

    Posted 11 May 2009 Link to this post

    thankx princy .. but this is not workin on IE.... am i missin somethin??
  6. Mark
    Mark avatar
    5 posts
    Member since:
    Oct 2011

    Posted 20 Dec 2011 Link to this post

    I have a situation where I am dynamically creating tooltips in a grid and want to change their background color based on a condition. How would I do this in code?
  7. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3600 posts

    Posted 21 Dec 2011 Link to this post

    Hello LeRoy,

    You can use the OnClientShow event of the RadToolTip and JavaScrtipt to change the background color:
    var flag = true;
    function OnClientShow(sender, args)
    {
    var theContentElement = sender.get_contentElement().style;
        if (flag)
        {
            theContentElement.backgroundColor = "#FF0000";
        }
        else
        {
            theContentElement.backgroundColor = "#008000";
        }
        flag = !flag;
    }



    Regards,
    Marin
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  8. Mark
    Mark avatar
    5 posts
    Member since:
    Oct 2011

    Posted 21 Dec 2011 Link to this post

    Exactly what I am looking for.

    I have text in the tool tip that may include the word 'warning' or 'hold'. I would like the background color to be red if the tool tip includes the word 'hold', otherwise I want it to be yellow. All of this is in a rad list view so I could have a hidden field or invisible label that could be set to true or false server-side if necessary. I am having trouble accessing the a hidden control or lable inside the list view. either solution will work. Either parse the text of the tool tip for the word hold or find the hidden field's value inside the listview.
  9. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 26 Dec 2011 Link to this post

    Hi,

     As far as I understand, getting the text as a string and searching with a regular expression or simply indexof will work for you. If so, you can easily get the content by using the get_content() method of the tooltip (it is documented here: http://www.telerik.com/help/aspnet-ajax/tooltip-client-side-radtooltip.html) - it will return the content where you can put a criteria and then search with a regex for it.

    Kind regards,
    Svetlina Anati
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017