|
Article relates to
|
RadInput v1.x
|
|
Created by
|
Paul, Telerik
|
|
Last modified by
|
Iana, Telerik
|
HOW-TO
Use RadInput with a global theme in ASP.NET 2.0
DESCRIPTION
Radinput is designed with control-level skinning in mind. Nonetheless, the control could take full advantage of the native ASP.NET 2.0 theming mechanism, if you are familiar with it.

SOLUTION
In order to achieve the desired look and feel of RadInput with global ASP.NET 2.0 theme, please follow the instructions below:
- Make your own global theme under App_Themes folder in your project.
- Create a skin file for the new theme
-
Add reference to the Telerik.Web.UI controls in theme’s skin file.
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
-
Define the RadMaskedTextbox or RadDateInput’s Skin property in the theme's skin file.
<telerik:RadMaskedTextBox runat="server" Skin="Mac" />
<telerik:RadDateInput runat="server" Skin="Mac" />
5. Set the Theme property in your ascx/aspx file.
6. Run your application.
Note: There is no need to add any images or CSS files in the Theme folder. Now the skins are embedded in the Telerik.Web.UI.Skins assembly as web resources.

SOLUTION
In order to achieve the desired look and feel of RadInput with global ASP.NET 2.0 theme, please follow the instructions below:
- Make your own global theme under App_Themes folder in your project.
- Create a skin file for the new theme

- If you want to use one of the skins that come with RadInput, please copy the corresponding skin folder from ~/RadControls/Input/Skins/[Skin name] to your application’s App_Themes folder.
- Add an input reference in the theme’s skin file
<%@ Register Assembly="RadInput.Net2" Namespace="Telerik.WebControls" TagPrefix="radI" %>
-
Define the RadMaskedTextbox or RadDateInput’s Skin property in the in the theme’s skin file.
<radI:RadMaskedTextBox runat="server" Skin="MacOS" />
<radI:RadDateInput runat="server" Skin="MacOS" />
-
Set the Theme property in your ascx/aspx file.
-
Run your application.
Please
Sign In
to rate this article.