3 Answers, 1 is accepted
0
Hi Rafal,
Could you, please, elaborate more on the matter? What is the setup that you have implemented? What dialogs exactly are you using? I will need more info on the matter so that I can understand the context of the issue. Otherwise I can only be guessing.
Regards,
Niko
the Telerik team
Could you, please, elaborate more on the matter? What is the setup that you have implemented? What dialogs exactly are you using? I will need more info on the matter so that I can understand the context of the issue. Otherwise I can only be guessing.
Regards,
Niko
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Rafal
Top achievements
Rank 1
answered on 12 May 2011, 06:08 PM
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>
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>
0
Hi Rafal,
Kind regards,
Niko
the Telerik team
The KeepInScreenBounds property of the RadColorPicker refers to the bounds of the browser's window, not another containing element. By suggestion will be to set a CSS rule to the jQuery dialog, so that the color picker doesn't go out of it, i.e. overflow: hidden.
Hope this helps.
Kind regards,
Niko
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.