I'm testing the RadColorPicker in my project and I find a compatibility trouble with prototype.js library.
Following an example to reproduce the error. If you remove the line <script type="text/javascript" src=".... prototype.js"></script> everything goes fine.
<%
@ Page Language="C#" AutoEventWireup="true" CodeFile="ProvaColorPicker.aspx.cs" Inherits="Prove_ProvaColorPicker" %>
<%
@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml" >
<
head runat="server">
<title>Test ColorPicker</title>
<script type="text/javascript">
function colorChange(sender, eventArgs)
{
var myDiv = document.getElementById("myDiv");
myDiv.innerHTML =
'Color changed from ' + eventArgs.get_oldColor()
+
" to " + sender.get_selectedColor();
return;
}
</script>
</
head>
<
body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<script type="text/javascript" src="../Library/scriptaculous/scriptaculous-js-1.8.2/lib/prototype.js" ></script>
<div>
<telerik:RadColorPicker ID="RadColorPicker1" runat="server" Columns="16" Preset="web216"
OnClientColorChange
="colorChange" ShowIcon="true">
</telerik:RadColorPicker>
<div id="myDiv"></div>
</div>
</form>
</
body>
</
html>