To add Telerik RadWindow to an ASP.NET WebForm you can use either of the following approaches:
 |
If your RadControls folder contains multiple subfolders for Telerik controls - for example, if you are using a Telerik RadControls for ASP.NET installation as opposed to a Telerik RadWindow installation - make sure you copy only the subfolders of the controls you are going to use (Window and any other controls you need). Do not copy the subfolders of controls you are not planning to use. |
Adding Telerik RadWindow to a WebForm using Visual Studio .Net
- Drag and drop the RadWindowManager control to your page. The following RadWindowManager declaration will automatically be added in your aspx:
| ASP.NET |
Copy Code |
|
<rad:RadWindowManager ID="RadWindowManager1" runat="server"> </rad:RadWindowManager> |
- Now you can add RadWindows via the RadWindow Collection Editor:
- Select the RadWindowManager and open its Properties pane (in design mode right-click on the control and select Properties from the dropdown menu).
- Click on the ellipsis next to the Windows Collection in the Data section of the Properties pane. This will open the RadWindow Collection Editor.
- Add RadWindows in the Windows collection and set the needed properties. If you want the RadWindow to be automatically shown when the page is loaded, you will need to set the VisibleOnPageLoad property to true.
- Once finished, press the OK button.
- Make sure that the RadControls/Window folder exists in your web application. The Telerik RadWindow control still needs some resources from the folder - unlike most of the other Telerik controls that can run only by their DLL
- Compile and open your page in the browser.
Adding Telerik RadWindow to a WebForm manually
Alternatively you can add the RadWindows in the RadWindowManager's Windows collection by manually typing them in the RadWindowManager declaration:
Again, you must make sure that the RadControls/Window folder exists in your web application.
A small movie demonstrating how to create and configure a RadWindow is available online here.