This is a migrated thread and some comments may be shown as answers.

Ajax ColorPicker in MVC Application

1 Answer 92 Views
ColorPicker
This is a migrated thread and some comments may be shown as answers.
Felipe Casanova
Top achievements
Rank 1
Felipe Casanova asked on 06 Jan 2012, 11:59 AM

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


1 Answer, 1 is accepted

Sort by
0
Slav
Telerik team
answered on 10 Jan 2012, 11:50 AM
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
Tags
ColorPicker
Asked by
Felipe Casanova
Top achievements
Rank 1
Answers by
Slav
Telerik team
Share this question
or