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

RadCodeBlock doesn't seem to work

3 Answers 90 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Kevin Warnke
Top achievements
Rank 1
Kevin Warnke asked on 27 Mar 2009, 04:28 PM
I'm loading a UserControl inside a tooltip.  The UserControl has <script> blocks that have functionality I need to use.

I've wrapped the <script></script> section inside a RadControlBlock.

However, the script still doesn't work.

Any ideas?  Is there a simple example out there for using <script> within a UserControl loaded inside a tooltip?

Thanks,
Kevin

3 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 30 Mar 2009, 01:56 PM
Hi Kevin,

Since the AJAX Framework does not evaluate script correctly and the RadToolTipManager uses AJAX to load the content of the tooltip you should go through the following blogpost

http://blogs.telerik.com/tervelpeykov/posts/08-10-20/AJAX_Using_AJAX_to_load_a_usercontrol_that_has_JavaScript_declared_in_it.aspx

which we prepared for scenarios like yours.



Best wishes,
Svetlina
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
0
Kevin Warnke
Top achievements
Rank 1
answered on 30 Mar 2009, 09:33 PM
I saw that post and I tried using the script provided but when I use that script when the tooltip opens and begins the process to load the user control over ajax I get the following error:

get_response().xmlHttpRequest.responseText is null or not an object

I simplified my scenario with the same result.  It still is pretty tied into my app so it's hard to provide a simple repro but I can try to create one if you think it's needed.

Thoughts?

Thanks,
Kevin
0
Kevin Warnke
Top achievements
Rank 1
answered on 30 Mar 2009, 09:38 PM
Scratch that.  When I make a simple example it works as expected per the blog.  I must be doing something in my tool tip user control that's causing it to fail.

I may need to move to a Window instead of a ToolTip.

Thanks,
Kevin
Tags
ToolTip
Asked by
Kevin Warnke
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Kevin Warnke
Top achievements
Rank 1
Share this question
or