Shade silverlight control on ajax radwindow open

3 posts, 0 answers
  1. Courtlandt Harris
    Courtlandt Harris avatar
    6 posts
    Member since:
    Oct 2009

    Posted 22 Oct 2009 Link to this post

    I am using a telerik silverlight upload control on a page that includes an ajax radgrid to display the uploaded files.  Once a file is uploaded, a radwindow can be opened via the radgrid's context menu using a radwindow manager.  The window is modal and shades the page to indicate this... except for the area that is occupied by the silverlight control.  Initially, the radwindow had issues when it was moved that caused it to be clipped by the silverlight control, but I solved that issue with code obtained from another post.  Is there any way to shade the silverlight control on opening of a modal (and non-silverlight) radwindow?


    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"
    <script type="text/javascript" src="Public/Scripts/Silverlight.js"></script> 
    <script type="text/javascript"
     
                 function OnClientDragStart(sender, args) { 
                    var iframe = sender.get_popupElement()._hideWindowedElementsIFrame; 
                    if (!iframe) return; 
                    setTimeout(function() { iframe.style.visibility = "visible"; }, 0); 
                } 
                function OnClientShow(sender, args) { 
                    var popup = sender.get_popupElement(); 
                    var iframe = popup._hideWindowedElementsIFrame;
                    } 
                }   
     
     
                </script> 
                </telerik:RadCodeBlock> 
                 
        
        
        <telerik:RadWindowManager  
                    id="RadWindowManager1"              
                    VisibleOnPageLoad ="false" Overlay="true"  
                    VisibleStatusbar="false"  VisibleTitlebar="true" ReloadOnShow="true" ShowContentDuringLoad="false" Skin="WebBlue"  DistroyOnClose="true" Behaviors="Move,Close"  
                    runat="server" Modal="true" 
                    OnClientDragStart="OnClientDragStart" 
                    OnClientShow="OnClientShow" >         
                    
          </telerik:RadWindowManager> 
  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 26 Oct 2009 Link to this post

    Hello Courtlandt,

    Try setting the Windowless property of the SL object to true.


    Best wishes,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. DevCraft banner
  4. Courtlandt Harris
    Courtlandt Harris avatar
    6 posts
    Member since:
    Oct 2009

    Posted 26 Oct 2009 Link to this post

    Indeed.  Thanks.
Back to Top