Posted
on May 12, 2011
(permalink)
Hi Niko,
I am wrapping the color picker in a jquery dialog: (for more information please reference: http://jqueryui.com/demos/dialog/)
I Have attached some code snippets which illustrate what im doing.
$(function() {
$("#testDialog").dialog({
autoOpen: false,
modal: true,
resizable: false,
scrollable: false,
title: "some title",
width: "1020px"
});
});
function OpenDialog()
{
$("#testDialog").dialog("open");
$("#testDialog").parent().appendTo($("form:first"));
}
<div id="testDialog" style="display:none;">
<div class="Row">
<span class="ColLabels label">
Text Color:
</span>
<span class="ColFields">
<telerik:RadColorPicker
id="radColorText"
Columns="15" runat="server" Width="500px" ShowEmptyColor="False"
ShowIcon="true" OnClientColorChange="textColorChange"
OnClientLoaded="textColorLoaded"
OnClientColorSelecting="textColorHover"
PaletteModes="HSV" KeepInScreenBounds="true"
/>
</span>
</div>
</div>