RadWindowManager.RadConfirm(): Does not display anything

3 posts, 1 answers
  1. AKROS
    AKROS avatar
    68 posts
    Member since:
    Oct 2011

    Posted 25 Aug Link to this post

    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. Answer
    Marin Bratanov
    Admin
    Marin Bratanov avatar
    3599 posts

    Posted 25 Aug Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. AKROS
    AKROS avatar
    68 posts
    Member since:
    Oct 2011

    Posted 27 Aug in reply to Marin Bratanov Link to this post

    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

Back to Top