RadControls for ASP.NET AJAX Caution |
|---|
Prerequisites
In order to have RadControls running, you will need to have ASP.NET AJAX installed on your development/production machine. See also General ASP.NET AJAX Information.
You need to set up an ASP.NET AJAX-Enabled WebSite in Visual Studio 2005 or an ASP.NET Web Site in Visual Studio 2008/2010.
|
To add a Telerik control to an ASP.NET WebForm you can use either of the following approaches:
Adding Telerik Control to a WebForm using Visual Studio .NET
The easiest way to deploy Telerik Control is by dragging its icon from the Visual Studio .NET Toolbox in Design mode. Visual Studio will automatically copy the Telerik.Web.UI.dll to the bin folder of your web-application and will create the respective references.
Adding Telerik Control to a WebForm manually
If you are not using Visual Studio .NET, you can deploy any Telerik Control manually. Follow the instructions below:
1. Copy the Telerik.Web.UI.dll from the binXX folder of the Telerik RadControls for ASP.NET AJAX installation to the bin folder of your web application (where XX specifies the version of the .NET framework against which the assembly is built).
2. Open your aspx/ascx file and add the Telerik RadControls for ASP.NET AJAX Register directive at the top:
CopyASPX
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
If you plan all pages in your application to use Telerik RadControls for ASP.NET AJAX you can add the following lines in your web.config file. In this case you don't need to add this directive in your pages.
Copyweb.config
<pages>
<controls>
<add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" />
</controls>
</pages>
3. Write the product tags in the body of the WebForm:
CopyASPX
<telerik:RadScheduler ID="RadScheduler1" Runat="server" />
See Also