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

radWindow client side object documentation

5 Answers 219 Views
Window
This is a migrated thread and some comments may be shown as answers.
Martin
Top achievements
Rank 1
Martin asked on 18 Jun 2008, 08:33 AM
I am attempting to open a rad window, passing a url, rather than a named instance of an existing window.

The call to set_title() and set_skin() don't appear to work. Also I would like to set the behaviors so there is no maximise and minimise buttons. Also I would like it modal. Here is the simple code I have.

        <script type="text/javascript">  
            function openRadWindow()  
            {  
                var oWnd = window.radopen("Window1.aspx"null);  
                oWnd.setSize(700,700);  
                oWnd.set_title = "test";  
                oWnd.set_skin = "Office2007";  
            }  
        </script>  
 

I am struggling to find document for the client side radWindow object. I have looked in the online documentation but no luck. Could you pass a link to the methods / properties available. In the debugger, the radWindow object seem to have a lot of duplicate methods e.g. set_title() and SetTitle(). Which should I use?

5 Answers, 1 is accepted

Sort by
0
Accepted
Georgi Tunev
Telerik team
answered on 18 Jun 2008, 10:24 AM
Hello Martin,

The correct syntax for the set_title method is set_title("My Title"); and there is no set_skin method in the client-side API. This is because the skins are loaded on the server and cannot be changed on the client.
If you want to use multiple skins on a same page, I suggest to declare several RadWindow controls with different skin set and to open them with the show() method.
e.g.
var oWnd = $find("<%= RadWindow1.ClientID %>");
oWnd.show();



Regards,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Moustafa
Top achievements
Rank 1
answered on 15 Oct 2008, 09:26 AM
I tried this server time but it  gives me nothing

the value of oWnd always null

var oWnd = $find("<%= RadWindow1.ClientID %>");
oWnd.show();

0
Georgi Tunev
Telerik team
answered on 15 Oct 2008, 01:32 PM
Hello Moustafa,

I don't know how you have set your code, but if you open a support ticket and send me a small sample project where the problem can be reproduced, I will check it right away.



All the best,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Moustafa
Top achievements
Rank 1
answered on 16 Oct 2008, 11:51 AM
It worked successfully when i mvoed the radwindow declaration inside the RadWindowManager Control like this.

<

 

telerik:RadWindowManager ID="RadWindowManager1" runat="server">
<
Windows>
<telerik:RadWindow ID="RadWindow_Emaxer_Mail_Folder" runat="server"
Modal="True" Width="600" Height="500"
ReloadOnShow="true" skin="Vista"
VisibleStatusbar="false"
NavigateUrl="~/EmaxER_Mail/Pages/Emaxer_Mail_Folder.aspx"
onclientclose="RefreshCustomFolder" >
</Windows>
</
telerik:RadWindowManager>

but this prevent the Opener ID from working.

It make the OpenerID do normal operations and not opening the rad window

any solution for this problem

 

0
Georgi Tunev
Telerik team
answered on 16 Oct 2008, 01:27 PM
Hi Moustafa,

Please open a support ticket and send us a full, working application where the problem can be reproduced. We will check it and do our best to help.


Sincerely yours,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Window
Asked by
Martin
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Moustafa
Top achievements
Rank 1
Share this question
or