Hi,
I have email ( compose screen ) is showing in the radwindow as popup. If user clicks on close button accidentally then I would like to show radconfirm.
Now I can able to show radconfirm ( "Do you want to save as draft ") , But 2 things i have to do.
1) Have check validation before save.
2) If user clicks on "OK" then i would like to save as draft.
In Parent :
Find the attachment and Please help me on this..
I have email ( compose screen ) is showing in the radwindow as popup. If user clicks on close button accidentally then I would like to show radconfirm.
Now I can able to show radconfirm ( "Do you want to save as draft ") , But 2 things i have to do.
1) Have check validation before save.
2) If user clicks on "OK" then i would like to save as draft.
In Parent :
<telerik:RadWindowManager runat="Server" ID="RadWindowManager2" ShowContentDuringLoad="false" EnableViewState="false"> <Windows> <telerik:RadWindow runat="server" ID="EmailScreen" KeepInScreenBounds="true" Title="TWDM Email" OnClientBeforeClose="OnClientBeforeCloseEmailScreen" InitialBehaviors="Maximize" AutoSize="true" Width="1000px" Height="850px" ReloadOnShow="true" ShowContentDuringLoad="false" Modal="True" Behaviors="Close,Move,Resize,Maximize" VisibleStatusbar="true"> </telerik:RadWindow> </Windows> </telerik:RadWindowManager> function OnClientBeforeCloseEmailScreen(sender, eventArgs) { radconfirm('Do you want to save as draft?', confirmCallbackFn1, 400, 200, null, 'TWDM Confirm'); } function confirmCallbackFn1(arg) { if (arg) //the user clicked OK { __doPostBack("<%=hdnBtnSaveAsDraft.UniqueID %>", ""); } }' Showing email compose screen in Radwindow Popup here. function onButtonClicked(sender, args) { var commandName = args.get_item().get_commandName(); var qs = getQueryStrings(); var oManager = GetRadWindowManager().getWindowByName("EmailScreen"); if (commandName == "Compose") { window.radopen("ComposeMail.aspx?type=NewEmail&TaskNo=" + qs["TaskNo"] + "&Parent=" + qs["Parent"] + "", "EmailScreen"); }Find the attachment and Please help me on this..