Telerik rad window issue

2 posts, 0 answers
  1. sushant
    sushant avatar
    2 posts
    Member since:
    Sep 2008

    Posted 26 Feb Link to this post

    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?

     

  2. Danail Vasilev
    Admin
    Danail Vasilev avatar
    1493 posts

    Posted 02 Mar Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top