All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
<
telerik:RadWindow
ID
=
"RadWindow1"
runat
"server"
VisibleOnPageLoad
"true"
OnClientBeforeClose
"OnClientBeforeClose"
>
ContentTemplate
telerik:RadMediaPlayer
"RadMediaPlayer1"
HDActive
"false"
Width
"700px"
Height
"500px"
StartVolume
"90"
Source
"http://www.youtube.com/watch?v=3FcCUXrR1-0"
</
<script type=
"text/javascript"
function
OnClientBeforeClose(sender, args) {
var
mediaplayer = $find(
"<%=RadMediaPlayer1.ClientID %>"
);
mediaplayer.stop();
}
</script>
script
type
function OnClientBeforeClose(sender, args) {
var oWnd = GetRadWindowManager().getWindowByName("YouTubeRadWindow");
oWnd.get_contentFrame().contentWindow.CloseYouTube();
> <telerik:RadWindowManager ID="RadWindowManager1" runat="server" EnableShadow="True" Animation="Fade" VisibleStatusbar="False" Behaviors="Close, Move" Skin="Default" ShowContentDuringLoad="False" KeepInScreenBounds="True"> <Windows> <telerik:RadWindow ID="YouTubeRadWindow" runat="server" Width="670px" OnClientBeforeClose="OnClientBeforeClose" Height="435px" ShowContentDuringLoad="False" /> </Windows> </telerik:RadWindowManager>
function GetRadWindow() {
var oWindow = null;
if (window.radWindow) {
oWindow = window.radWindow;
else if (window.frameElement.radWindow) {
oWindow = window.frameElement.radWindow;
return oWindow;
function CloseDialog() {
GetRadWindow().Close();
function CloseYouTube() {
var mediaplayer = $find("<%=YouTubeMediaPlayer.ClientID %>");
div
"YouTubeMediaPlayer"
"640px"
"360px"
/>