Rad Alert issue

2 posts, 0 answers
  1. : Arumuga Vignesh
    : Arumuga Vignesh  avatar
    21 posts
    Member since:
    Jul 2013

    Posted 20 May 2014 Link to this post


    I am facing an issue with rad alert window, below is my scenario

    I have pop up Rad Window to add a customer details, if the customer name is not unique I am displaying and rad alert. If I click OK in Rad Alert box , Its automatically closing Add Customer details rad window. Bit I want only the RadAlert box to be closed. Below is my rad alert box call

    lblAddEditDialogMEsg.Text = subAffiliateName + " already exists!";
                        radAddEditDialogMEsg.Title = "Sub-Affiliate  - Add";
                        rdWdMgrNotification.RadAlert(lblAddEditDialogMEsg.Text, 400, 80, radAddEditDialogMEsg.Title, null, null);

    Please help me to fix this

  2. Marin Bratanov
    Marin Bratanov avatar
    5925 posts

    Posted 20 May 2014 Link to this post


    The OK button only closes the alert and executes other code if a callback function is defined. Thus, since no callback is defined, it is not likely that the alert is actually causing the problem.

    What I can advise is that you check for the following things:

    • if there is an OnClientClose handler set to the RadWindowManager that opens the alert, it will also be executed when the alert closes. Thus, there may be code that is causing the problem (e.g., initiating a postback).
    • if you have modified the AlertTemplate a JS error may be thrown or a postback initiated, so you would need to check and fix that if this is the case.
    • it is possible that the code that calls the alert initiates a postback that disposes the RadWindow (and thus, closes it), but since the alert is modal, you only see it is gone when you close it. It is likely that you will need to perform a partial postback or exclude the RadWindow from the partial postback.

    I hope this helps you fine the issue.


    Marin Bratanov

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top