The /RadControls folder contains the various resources needed for the Telerik RadControls for ASP.NET components (i.e. images, localization files, configuration files, skins, etc.). Each component seeks for its resources in the respective subfolder of "RadControls", for example /RadControls/Dock for the Telerik RadDock.
 |
You do not need to add the /RadControls folder to your VisualStudio project. |
By default, the RadControls folder should be located in the root of your web-application. However, you can move the folder using the Windows Explorer to a different location within your web-application and specify its position in the RadDockingManager.RadControlsDir property.
e.g.
RadDockingManager1.RadControlsDir="~/Resources/RadControls" |
Moving the folder within your web-application
- Manually copy the RadControls to the new location within your web application (say ~/Resources/). Do not use VS to do this for you as it changes the namespaces of the files and changes the project language from C# to VB which in turn breaks the application.
- Specify its position in the RadControlsDir property in the control's declaration in your ascx/aspx file, e.g.
<rad:RadDockingManager RadControlsDir="~/Resources/RadControls"> </radCld:RadCalendar> |
where the tilde "~" represents the root of your web-application.
Moving the folder outside your web-application
This is the best scenario if you want to have single RadControls folder for several applications.
- Manually copy the RadControls to the new location (say ~/Resources/). Do not use VS to do this for you as it changes the namespaces of the files and changes the project language from C# to VB which in turn breaks the application.
- Create a virtual directory with name RadControls under each application root which points physically to the same physical folder. That physical folder should include all the scripts and other required settings of the controls. Note that such mechanism enables different versions of our products to reside in different web applications - just change the reference of the virtual folder to other physical path when you want to use other version of some control.
- Please, keep in mind that in such scenario it is very important that the respective RadControls virtual directories should NOT be web application but virtual directories only.
- Specify the position of the RadControls folder in the RadControlsDir property in the control's declaration in your ascx/aspx file as shown below:
|
<rad:RadDockingManager RadControlsDir="~/RadControls"> </radCld:RadCalendar>
|
where the tilde "~" represents the root of your web-application.
 |
Make sure you set the RadControlsDir property to "~/RadControls/" (with the slash following the letters). |
| Default location |
Relocated |
|
|
|
(RadControlsDir not set) |
(RadControlsDir="~/Resources/RadControls") |