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