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

Shade silverlight control on ajax radwindow open

2 Answers 52 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Courtlandt Harris
Top achievements
Rank 1
Courtlandt Harris asked on 22 Oct 2009, 06:36 PM
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 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 26 Oct 2009, 01:05 PM
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.
0
Courtlandt Harris
Top achievements
Rank 1
answered on 26 Oct 2009, 02:13 PM
Indeed.  Thanks.
Tags
Upload
Asked by
Courtlandt Harris
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Courtlandt Harris
Top achievements
Rank 1
Share this question
or