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

RadWindowManager.RadConfirm(): Does not display anything

2 Answers 181 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
AKROS
Top achievements
Rank 1
AKROS asked on 25 Aug 2016, 12:46 PM

Good afternoon

We have a very simple test: we would like to display RadWindowManager.RadConfirm() on an existing aspx Website.

Therefore, we have:

  • edit.aspx
    <%@ Page Title="" Language="C#" … AutoEventWireup="true" CodeBehind="Edit.aspx.cs" Inherits="EnAW.EnergieModell.UserInterface.Web.Zielvereinbarung.Selbstbeurteilung.Edit" %>
    <%@ Register Src="~/UserControls/Message/ValidationDisplay.ascx" TagPrefix="uc" TagName="ValidationDisplay" %>
    <%@ Register Src="~/UserControls/Zielvereinbarung/Selbstbeurteilung/Edit.ascx" TagPrefix="uc" TagName="Edit" %>

    <asp:Content runat="server" ContentPlaceHolderID="ctpMainContent">
        <telerik:RadWindowManager RenderMode="Lightweight" ID="RadWindowManager1" runat="server" EnableShadow="true" />
        <asp:Panel ID="pDeleteConfirm" runat="server"
  • edit.aspx.cs
    void Test() {
    RadWindowManager1.RadConfirm("Server radconfirm: Are you sure", "confirmCallBackFn", 330, 180, null, "Server RadConfirm");
    }

 

Unfortunately, if we call RadConfirm(), nothing happens.

Is it a problem to embed <telerik:RadWindowManager ..> into <asp:Content ...>?

 

Thanks a lot for any help in advance,
kind regards,
Thomas

 

2 Answers, 1 is accepted

Sort by
0
Accepted
Marin Bratanov
Telerik team
answered on 25 Aug 2016, 12:51 PM

Hi Thomas,

Can you confirm you have the callback function declared on the page? If not, you will get a script error that will prevent the dialog from showing up.

I am attaching here a simple example you can use as reference.

Regards,

Marin Bratanov
Telerik by Progress
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
0
AKROS
Top achievements
Rank 1
answered on 27 Aug 2016, 10:22 AM

Hi Martin

thank you very much for your fast answer and your simple example!, you were right that we had no callback function. I did not have expected that the exception about the missing function is raised before the dialog is displayed... so I've learned to complete simple examples :-)

Thanks a lot for your help!,
Kind regards, Thomas

Tags
General Discussions
Asked by
AKROS
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
AKROS
Top achievements
Rank 1
Share this question
or