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

Window Close

2 Answers 196 Views
Window
This is a migrated thread and some comments may be shown as answers.
Siddhartha Savant
Top achievements
Rank 1
Siddhartha Savant asked on 24 Jun 2010, 07:53 PM
Hi,

Need to close the rad modal window via server side button postback. In the Button Click I have a Literal/Label in which I provide the javascript function which has Close Window logic. This works when there is no AJAX on the page but fails when I have AJAX. please advice.

Sid

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 25 Jun 2010, 07:16 AM
Hello Sid,

Consider the RegisterStartupScript() server method to invoke the client method than injecting the script and see whether it helps.

The KB Article shows how to show radalert from code behind. Use the same logic to invoke the client function which closes the window.
KB Article : Calling radalert from codebehind


-Shinu.
0
Georgi Tunev
Telerik team
answered on 25 Jun 2010, 08:48 AM
Hello Sid,

I believe that this blog post will be of help. In short, you should not output JavaScript code in a Label when Ajax is used because that code will not be evaluated. You should use some other approach (like the ones described in the blog post) instead.

All the best,
Georgi Tunev
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
Tags
Window
Asked by
Siddhartha Savant
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Georgi Tunev
Telerik team
Share this question
or