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

asp:Silverlight in radtooltip

1 Answer 35 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Sampada
Top achievements
Rank 1
Sampada asked on 02 Aug 2013, 10:01 AM
Team,

I am trying to add silverlight control in radtooltip.
But I am getting the blank tooltip. Same Silverlight control is getting display properly out side the radtooltip.

Here is my code 
<telerik:RadToolTip ID="ttTest" runat="server" IsClientID="true" RelativeTo="Element" TargetControlID="Test" ManualClose="true">
    <div id="dvTest"> </div>
    <table border="1">
    <tr>
    <td>  <div id="dvDashboard" clientidmode="Static" runat="server" style="
                            width: 500px; height: 500px">
     <asp:Silverlight ID="Xaml1" runat="server" Source="~/ClientBin/Dashboard.xap"
                                Windowless="true" Width="100%" Height="100%" InitParameters="KPIID=10004,VIEW=Dashboard" />
                                </div>
    </td>
    </tr>
    </table>
      
    </telerik:RadToolTip>

Please let me know what should I do to show silverlight control in radtooltip control.
Thanks
Sampada

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 06 Aug 2013, 11:51 AM
Hi Sampada,

Silverlight and flash objects tend to restart when the visibility of their parent element is changed. Moreover, the RadToolTip will move its contents in the DOM when it is shown for the first time because this is when its popup element will be rendered with JavaScript, so the content from the ASPX markup will then be moved to the actual popup.
All this is likely to break such objects and I am afraid it cannot be avoided.
What I can offer as a possible workaround, but I cannot guarantee it will work is the following:
- try toggling the windowless property to see if this makes a difference
- try using the OnClientShow event of the control to create the SL object with JS
- if you have your own method that can re-initialize the SL control you can call it with JS in the OnClientShow event instead of creating the object dynamically.

Regards,
Marin Bratanov
Telerik
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 the blog feed now.
Tags
ToolTip
Asked by
Sampada
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or