Ajax ColorPicker in MVC Application

2 posts, 0 answers
  1. Felipe Casanova
    Felipe Casanova avatar
    56 posts
    Member since:
    Feb 2010

    Posted 06 Jan 2012 Link to this post


    We are currently migrating a conventional ASP.Net application, utilizing Telerik Ajax controls, in MVC. The issue is that we want to achieve exactly the same appearance of the site. So, we are trying to figure out if there is any way to use <telerik:RadColorPicker/> to an MVC application.



  2. Slav
    Slav avatar
    1359 posts

    Posted 10 Jan 2012 Link to this post

    Hello Matt,

    The best starting point for getting to know the integration options of RadControls for ASP.NET AJAX with ASP.NET MVC is the documentation of the controls itself.

    As far as the RadColorPicker control is concerned, you can integrate it into an MVC project by following these steps:
    1. Include a ScriptManager into the page within a <form> tag with runat="server". RadScriptManager is applicable as well.

    2. Register the HTTP handler required by RadScriptManager by adding the following declaration into the web.config <system.web><httpHandlers> tag:

    and another one into the <system.webServer> <handlers> tag:

    3. Add the RadColorPicker the same way you would with the ASP.NET WebForms. Here is a sample implementation:
    <telerik:RadColorPicker ID="RadColorPicker1" runat="server" PaletteModes="All" />

    Please keep in mind that certain features may not work as expected, because of the differences in the frameworks.

    I hope that helps. Don't hesitate to contact us again if you run into more difficulties.

    All the best,
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Back to Top