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

Opening RadWindow from Code Behind

3 Answers 93 Views
Window
This is a migrated thread and some comments may be shown as answers.
Bruno Costa
Top achievements
Rank 1
Bruno Costa asked on 14 Aug 2012, 12:15 PM
Hi,

I've tried to open RadWindow.RadConfirm but it is not working. I'm trying due this instructions: http://demos.telerik.com/aspnet-ajax/window/examples/browserdialogboxes/defaultcs.aspx 

The RadConfirm method is not shown in my RadWindowManager1.... My version is 2010.

Please, could someone help me?

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 14 Aug 2012, 12:30 PM
Hi,

You can call the radconfirm using RadWindowManger as shown below.
C#:
RadWindowManager1.RadConfirm("Server radconfirm: Are you sure?", "confirmCallBackFn", 330, 100, null, "Server RadConfirm", choices.SelectedValue);
JS:
function confirmCallBackFn(arg) {
         radalert("<strong>radconfirm</strong> returned the following result: <h3 style='color: #ff0000;'>" + arg + "</h3>", null, null, "Result");
     }

Thanks,
Princy.
0
Bruno Costa
Top achievements
Rank 1
answered on 14 Aug 2012, 12:42 PM
Thanks for answer.

But the problem is: I can't see the method "RadConfirm", it's not showing... I think it is because my version (2010).
0
Accepted
Marin Bratanov
Telerik team
answered on 14 Aug 2012, 02:07 PM
Hi Bruno,

The server methods we added in Q1 2011, so your version does not have them. This is noted in the documentation related to the methos, e.g. this article.


All the best,
Marin Bratanov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Window
Asked by
Bruno Costa
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Bruno Costa
Top achievements
Rank 1
Marin Bratanov
Telerik team
Share this question
or