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

Radwindow creation using client side

2 Answers 110 Views
AJAX and Web 2.0
This is a migrated thread and some comments may be shown as answers.
Dayana Maliyakal
Top achievements
Rank 1
Dayana Maliyakal asked on 08 Mar 2011, 06:45 AM
Hi Telerik Team,
  I am creating radwindow like below.

<

 

telerik:RadWindowManager ID="rdWmFundWindowManager" runat="server" ReloadOnShow="true"

 

 

Skin="Windows7" Modal="true" ShowContentDuringLoad="false" VisibleStatusbar="false"

 

 

Behavior="Close,Reload">

 

 

<Windows>

 

 

<telerik:RadWindow ID="rdWnAddUserWindow" runat="server" Modal="True" Height="300px"

 

 

Width="700px" Left="" Title="Add New Analyst" Top="" Skin="Windows7" Style="z-index: 7002">

 

 

</telerik:RadWindow>

 

 

</Windows>

 

 

</telerik:RadWindowManager>

 


Can I create the above radwindow in client side? Please reply.

Dayana

2 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 10 Mar 2011, 09:45 AM
Hello Dayan,

The radopen method is used to create dynamically a new RadWindow on the client with the settings of the RadWindowManager. After that you can use the client API to modify or add new settings to this particular just created RadWindow. E.g you can generate the same RadWindow as the declared one as follows:

function OpenWnd() {
    var oWnd = radopen("", null);
    oWnd.set_modal(true);
    oWnd.setSize(700, 300);
    oWnd.set_title("Add New Analyst");
    oWnd.center();
}

Please, note, that the skin cannot be changed on the client and it is also set to the manager already - there is no need to set it again for the RadWindow.

As to the z-index I strongly recommend to set it to the manager because the newly opened RadWindows have incermenting logic considering the z-index and if you set it for the separate RadWindow only, you will lose this built-in logic. However, if you insist on setting it, you should use the following syntax:

oWnd.get_popupElement().style.zIndex = "7002"

At last you can find the client API of the RadWindow listed below:

http://www.telerik.com/help/aspnet-ajax/programming-radwindow-methods.html

I hope that my reply is detailed enough and helpful, let me know how it goes.
 

All the best,
Svetlina
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Dayana Maliyakal
Top achievements
Rank 1
answered on 11 Mar 2011, 05:35 AM
Hello Svetlina 
        Thank you very much for your reply.
Tags
AJAX and Web 2.0
Asked by
Dayana Maliyakal
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Dayana Maliyakal
Top achievements
Rank 1
Share this question
or