RadColorPicker doesn't display palette tabs

3 posts, 1 answers
  1. Roman
    Roman avatar
    25 posts
    Member since:
    Sep 2010

    Posted 05 Jul 2011 Link to this post

    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. Answer
    Niko
    Admin
    Niko avatar
    387 posts

    Posted 06 Jul 2011 Link to this post

    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!

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Roman
    Roman avatar
    25 posts
    Member since:
    Sep 2010

    Posted 06 Jul 2011 Link to this post

    It has fixed my problem.
    Thanks.
Back to Top