asp:Silverlight in radtooltip

2 posts, 0 answers
  1. Sampada
    Sampada avatar
    44 posts
    Member since:
    Feb 2012

    Posted 02 Aug 2013 Link to this post


    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">
        <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" />

    Please let me know what should I do to show silverlight control in radtooltip control.
  2. Marin Bratanov
    Marin Bratanov avatar
    3564 posts

    Posted 06 Aug 2013 Link to this post

    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.

    Marin Bratanov
    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.
  3. DevCraft R3 2016 release webinar banner
Back to Top