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

Important changes in the Client-Side API of RadWindow for ASP.NET AJAX

7 Answers 1183 Views
Window
This is a migrated thread and some comments may be shown as answers.
Telerik Admin
Top achievements
Rank 1
Iron
Telerik Admin asked on 17 Apr 2008, 04:11 PM
Hello,

In RadControls for ASP.NET AJAX Q1 2008 there is a change in the Client-Side API. The compatibility layer which was used in the transition beta period is now removed. All client-side methods strictly follow the ASP.NET AJAX conventions and are lower case. For instance: set_navigateUrl() should always be used from now on, set_NavigateUrl() is no longer supported. This also results in significant improvement in page loading times.

If you have used RadWindow for ASP.NET and now you upgrade to RadWindow for ASP.NET AJAX, the old naming convention in ASP.NET will still work, but we strongly recommend to change your code to match the new convention. More information about the changes and backward compatibility of the control is available in the documentation, section Controls / RadWindow / Overview / Changes and Backward Compatibility and Migration from RadWindow Classic to RadWindow Prometheus.

Best regards,
The Telerik team

7 Answers, 1 is accepted

Sort by
0
Brijendra Kumar
Top achievements
Rank 1
answered on 03 Nov 2008, 05:20 AM
Hi Telerik Admin,

I have a page in which i divide the whole screen in three parts by using rad splitter(Page1.aspx).
In each rad splitter pane i have called different url(Page2.aspx, Page3.aspx).
But when i open a rad window (window manager is on Page2.aspx, Page3.aspx), this window does not apper on whole screen. It appears only in container splitter area of the page.

How will i open this rad window on whole screen.

Thanks & Regards
Brijendra Pandey
0
Georgi Tunev
Telerik team
answered on 03 Nov 2008, 08:47 AM
Hi Brijendra,

What you need to do is to put the RadWindow / RadWindowManager control in the main page and to open windows by using top.radopen(). If you still experience problems, please open a support ticket and send us a sample project where they can be reproduced.


Best wishes,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Sunghwan
Top achievements
Rank 1
answered on 31 Dec 2008, 05:17 PM
What is the replacement function name for CallBack() to invoke call back function? I replaced it with _invokeDialogCallBackFunction, but I am not sure if that should be used.
0
GT
Top achievements
Rank 1
answered on 02 Jan 2009, 02:05 PM
You need to send the value as argument when the window is closing so you can read it on the parent page in the callback function.
Check this article - it shows how to do it:
http://www.telerik.com/help/aspnet-ajax/window_programmingusingradwindowasadialog.html

If you want to send the data without closing the dialog however, I suggest to use GetRadWindow().BrowserWindow for this - like it is shown here:

http://www.telerik.com/help/aspnet-ajax/window_programmingcallingfunctions.html



0
Svetlina Anati
Telerik team
answered on 02 Jan 2009, 03:50 PM
Hi Sunghwan,

I am afraid I could not completely understand what you are trying to achieve - the client callback function gets executed automatically when the RadWindow is closed with some argument and it is not called explicitly. I also recommend to use the add_close method to attach a handler for the close event as explained below:
http://www.telerik.com/help/aspnet-ajax/window_programmingsettingclienteventsusingjavascript.html
instead of callback.  

Best wishes,
Svetlina
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Sunghwan
Top achievements
Rank 1
answered on 05 Jan 2009, 04:55 PM

I used following sample using Q4 2006 version of Telerik controls. It used to work fine until we upgraded to Q2 2008. Debugging through FireBug in FireFox, I realized that CallBack function is no longer supported. I searched for replacement function and came across _invokeDialogCallBackFunction and it works fine, but wanted to make sure. Now I changed my code according to your suggestion and it is working fine. Thanks.

 

 

 

 

var oWindow = GetRadWindow();

 

 

 

//Variant1: Invoke the calback function, pass it the result as an argument

 

 

 

 

oWindow.CallBack(updateValue);

oWindow.Close();

 

 

//Variant2: Passing the argument to the Close method will result in the same behavior

 

 

 

 

 

//oWindow.Close(oNewText);

 

 

 

 

 

 

//Variant3: Possible to set the Argument property of RadWindow here, and read it in the OnClientClose event handler!

 

 

 

 

 

//oWindow.Argument = oNewText;

 

 

 

 

 

 

0
Sunghwan
Top achievements
Rank 1
answered on 05 Jan 2009, 04:56 PM
Thanks for your reply. I used suggestion from previous post and it is working fine.
Tags
Window
Asked by
Telerik Admin
Top achievements
Rank 1
Iron
Answers by
Brijendra Kumar
Top achievements
Rank 1
Georgi Tunev
Telerik team
Sunghwan
Top achievements
Rank 1
GT
Top achievements
Rank 1
Svetlina Anati
Telerik team
Share this question
or