Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > ColorPicker > Ajax ColorPicker in MVC Application

Not answered Ajax ColorPicker in MVC Application

Feed from this thread
  • Matt Cowen avatar

    Posted on Jan 6, 2012 (permalink)

    Hi,

    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.

     

    Regards


    Reply

  • Slav Slav admin's avatar

    Posted on Jan 10, 2012 (permalink)

    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.
    <asp:ScriptManagerID="ScriptManager1"runat="server"></asp:ScriptManager>

    2. Register the HTTP handler required by RadScriptManager by adding the following declaration into the web.config <system.web><httpHandlers> tag:
    <addpath="Telerik.Web.UI.WebResource.axd"type="Telerik.Web.UI.WebResource"
    verb="*"validate="false"/>

    and another one into the <system.webServer> <handlers> tag:
    <addname="Telerik_Web_UI_WebResource_axd"verb="*"
    preCondition="integratedMode"path="Telerik.Web.UI.WebResource.axd"
    type="Telerik.Web.UI.WebResource"/>

    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,
    Slav
    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

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > ColorPicker > Ajax ColorPicker in MVC Application
Related resources for "Ajax ColorPicker in MVC Application"

ASP.NET ColorPicker Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  |  Step-by-step Tutorial  ]