Colorpicker inside radwindow layout error

5 posts, 1 answers
  1. Niels
    Niels avatar
    7 posts
    Member since:
    Jan 2010

    Posted 29 Dec 2010 Link to this post

    I'm using a RadColorPicker inside of a RadWindow and it causes the RadColorPicker to have all of its colours in one column. If I generate a postback in the page that contains the RadColorPicker then it snaps into the right layout/look. Any idea what is causing this/how to solve this? see images to understand what I mean.

    Before postback

    After postback

    uploaded clearer images
  2. Answer
    Tsvetie avatar
    1517 posts

    Posted 30 Dec 2010 Link to this post

    Hello Niels,
    This can happen, in case the color picker is initialized in an invisible element (e.g. it has a parent element with "display:none" style setting). In this case, the color picker cannot calculate the size of its elements correctly. The easiest way to fix the problem, is to set the width of the color picker explicitly. For example:

    <telerik:RadColorPicker ID="RadColorPicker1" runat="server" Width="328px">

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Niels
    Niels avatar
    7 posts
    Member since:
    Jan 2010

    Posted 30 Dec 2010 Link to this post

    Thank you that indeed solved my problem !
  5. Pierre
    Pierre avatar
    5 posts
    Member since:
    Aug 2011

    Posted 12 Oct 2011 Link to this post

    Why is the border not showing on the right side
    Thanks in advance for your reply
  6. Slav
    Slav avatar
    1356 posts

    Posted 17 Oct 2011 Link to this post

    Hi Pierre,

    I tired to recreate the described scenario, but I wasn't able to reproduce the problem at hand. Please find attached the my test sample, so that you can compare it with your actual project and check if there are differences in the setup. In this screen capture you can check the appearance of the RadColorPicker on my end.

    My suggestion is to check for custom CSS that interferes with the default style sheets of the RadColorPicker. If this is the case, please remove the additional styles that cause the problem.

    Note that at the current circumstances I am mostly guessing as to what your setup is. In case you are still unable to resolve your problem please try modifying the attached project so that the issue is reproducible. If aren't able to do so, you can also prepare and send us a sample, runnable project that isolates your problem so that we can examine it locally and provide a more specific answer.

    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017