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

Rad Alert issue

1 Answer 102 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
: Arumuga Vignesh
Top achievements
Rank 1
: Arumuga Vignesh asked on 20 May 2014, 01:55 PM
Hi,

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


1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 20 May 2014, 03:21 PM

Hi,

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.


Regards,

Marin Bratanov
Telerik
 

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.

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