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

RadColorPicker doesn't display palette tabs

2 Answers 49 Views
ColorPicker
This is a migrated thread and some comments may be shown as answers.
Roman
Top achievements
Rank 1
Roman asked on 05 Jul 2011, 12:42 PM
You mentioned that this problem will be fixed in next release.
What is the status of it?



Related to: http://www.telerik.com/community/forums/aspnet/general-discussions/radcolorpicker-doesn-t-display-palette-tabs.aspx

2 Answers, 1 is accepted

Sort by
0
Accepted
Niko
Telerik team
answered on 06 Jul 2011, 12:30 PM
Hi Roman,

This issue with not be addressed in the upcoming release of the controls. Still you can implement the following workaround as an event handler for the OnClientPopUpShow:
function correctPopupPosition(picker, args)
{
    var tabsHeight = 30;
    var documentHeight = $telerik.$(document).height();
    var palette = $telerik.$(picker.GetPaletteContainer());
    var paletteHeight = palette.height();
    var paletteOffset = palette.offset();
                  
    if(paletteOffset.top + paletteHeight + tabsHeight > documentHeight)
        palette.css({top: palette.position().top - tabsHeight});
}
This solution should cover most of the use-cases.

Hope this helps.

All the best,
Niko
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Roman
Top achievements
Rank 1
answered on 06 Jul 2011, 01:30 PM
It has fixed my problem.
Thanks.
Tags
ColorPicker
Asked by
Roman
Top achievements
Rank 1
Answers by
Niko
Telerik team
Roman
Top achievements
Rank 1
Share this question
or