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

RadToolTipManager and stylesheets

1 Answer 44 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Jean-Marc
Top achievements
Rank 1
Jean-Marc asked on 22 Dec 2011, 05:32 PM
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")
panel.ContentTemplateContainer.Controls.Add(ctrl)
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.

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

each one sets a different style sheets

Thanks

1 Answer, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 26 Dec 2011, 01:30 PM
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:

http://dotnetslackers.com/Ajax/re-142387_AJAX_gt_gt_Using_AJAX_to_load_a_usercontrol_that_has_refers_to_a_custom_css_file.aspx


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
Tags
ToolTip
Asked by
Jean-Marc
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Share this question
or