Thursday, November 14, 2013

Start Developing ASP.Net Applications Using Telerik Controls

Hi all,

Today I’m going to show you how to setup the environment to work with Telerik controls in ASP.Net web applications. In a previous tutorial I showed you how to develop a simple grid using Telerik RadGrid. When developing the grid, we have to add the references and edit the web.config file to avoid the errors that come on our way.

First you have to add the reference to “Telerik.Web.UI.dll”.





















Next the web.config should be edited as following. (Note: I have done this to support a basic rad grid and this may change according to your application)
 <configuration>
  <system.web>
    <compilation debug="true" targetFramework="4.0" />
   
    <httpHandlers>
      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
    </httpHandlers>
    <pages>
      <controls>
        <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/>
      </controls>
    </pages>
   
  </system.web>

  <system.webServer>
    <handlers>
      <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource"/>
    </handlers>
  </system.webServer>

  <location path="Telerik.Web.UI.WebResource.axd">
    <system.web>
      <authorization>
        <allow users="*"/>
      </authorization>
    </system.web>
  </location>
 
</configuration>

Finally you have to add the  “Telerik.Web.UI.dll” to the bin folder of your project.

Now you can start developing ASP.Net applications using Telerik.


Hope this helps J

No comments:

Post a Comment