RadToolTipManager and stylesheets

2 posts, 0 answers
  1. Jean-Marc
    Jean-Marc avatar
    93 posts
    Member since:
    Mar 2011

    Posted 22 Dec 2011 Link to this post

    I have an aspx page that include an ascx (bulletin.ascx) and also I'm using a RadToolTipManager
    and loading its panel on OnAjaxUpdate. It works fine.
    On that event I do somethig like this
    Dim ctrl As Control = Page.LoadControl("/News/Bulletin/Bulletin.ascx")
    Dim myBulletin As ASP.Bulletin = DirectCast(ctrl, ASP.Bulletin)
    ctrl = Nothing
    myBulletin.showThisNews_IDNews = elementID
    myBulletin.setCssStyleSheet = "/Preferences/News/Style/Bulletin/bulletinStyles.css"

    it does not take the stylesheet (i guess it is too late)

    so my problem is:
    how to set a stylesheet on the RadToolTipManager? considering i also have the same ascx control, shown in the tooltip, somewhere else on the aspx page with a different stylesheet(this works)

    hope it's clear.

    calendar with radtooltipmanager showing myAscx(1)
    inlcuding myAscx(2)

    each one sets a different style sheets


  2. Svetlina Anati
    Svetlina Anati avatar
    2795 posts

    Posted 26 Dec 2011 Link to this post

    Hi Jean,

    Loading a suer control with custom CSS with AJAX is a general problem which is not directly related to RadControls. There are a few possible solutions on the net but what I recommend is to examine the following blogpost which I and a colleague of mine have prepared exactly for such cases:


    The blogpost also includes a sample demo along with the detailed explanations. Please, examine it and let me know in case you have additional questions or if you need further assistance.

    All the best,
    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