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

Telerik rad window issue

1 Answer 60 Views
Window
This is a migrated thread and some comments may be shown as answers.
sushant
Top achievements
Rank 1
sushant asked on 26 Feb 2016, 03:08 PM

Hi

 

I have main page and I am using rad window in it like below.

Main Page

<telerik:RadWindowManager RegisterWithScriptManager="true" ID="wmgWindowManager" ReloadOnShow="true" runat="server"
        Behavior="Move" ShowContentDuringLoad="false" DestroyOnClose="true">
        <windows>
            <telerik:RadWindow ID="wndAssignPerformer" RegisterWithScriptManager="true"  ShowContentDuringLoad="false" runat="server" OnClientClose="RefreshPerformer" />
        </windows>
        <confirmtemplate>
            <uc:Confirm ID="confirmValidation" runat="server"></uc:Confirm>
        </confirmtemplate>
    </telerik:RadWindowManager>

 

Inside above rad window I am opening another page "Sub_Page.aspx". Inside "Sub_Page" I am using pop up extender like below.

 <telerik:radpopupextender  id="extPopup" runat="server" OnOkSelected="extPopup_OkSelected" >
        <telerik:RadPopupControl UniqueId="ReassignPerformer" WindowManagerId="wmgWindowManager" Disabled="true" ControlId="btnSave"
            MessageType="Confirm" Height="120" Width="450" PostBackOnOk="true" PostBackOnCancel="false"
            StartupScript="true" TitleKey="CONFIRMATION" MessageKey="REASSIGNPERFORMER" />
        <afs:RadPopupControl UniqueId="ReassignClaimOwner" WindowManagerId="wmgWindowManager" Disabled="true" ControlId="btnSave"
            MessageType="Confirm" Height="120" Width="450" PostBackOnOk="true" PostBackOnCancel="false"
            StartupScript="true" TitleKey="CONFIRMATION" MessageKey="REASSIGNCLAIMOWNER" />
    </telerik:radpopupextender>

    <telerik:radwindowmanager id="wmgWindowManager" runat="server">
        <Windows>
            <telerik:RadWindow ID="wndAssignPerformer" runat="server" />
        </Windows>
        <ConfirmTemplate>
            <uc:Confirm ID="confirmValidation" runat="server"></uc:Confirm>
        </ConfirmTemplate>
    </telerik:radwindowmanager>

on OnOkSelected event of pop up extender I am calling "extPopup_OkSelected" function of code behind file like below.

 private void extPopup_OkSelected(System.Object sender, System.EventArgs e)
        {

           //do some server coding
           System.Web.UI.ScriptManager.RegisterStartupScript(this, this.GetType(),
                    "Javascript", "function closeWindowOnSave(){var oWnd = $find(\"<%= wndAssignPerformer.ClientID%>\"); if(oWnd !=null){oWnd.close()} else {window.parent.close();} ;} closeWindowOnSave();", true);
            }
        }

    My issue is that when I click on OK button my modal pop up get spinning. I want that when I click on Ok, after server processing complete my modal pop up  

   should close. But my javascript is not getting called from page behind

   When I am opening "Sub_Page" directly from browser javascript is getting executed but when it opens inside rad window it is not.

  Can you please help on this?

 

1 Answer, 1 is accepted

Sort by
0
Danail Vasilev
Telerik team
answered on 02 Mar 2016, 07:45 AM
Hi Sushant,

There is an issue with the ACT suite, so that I would suggest you replace the corresponding control with its UI for ASP.NET AJAX equivalent. More information on the matter is available in this forum post - http://www.telerik.com/forums/telerik-ui-for-asp-net-ajax-and-ajax-control-toolkit

Regards,
Danail Vasilev
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Window
Asked by
sushant
Top achievements
Rank 1
Answers by
Danail Vasilev
Telerik team
Share this question
or