Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > ColorPicker > Colorpicker inside radwindow layout error

Answered Colorpicker inside radwindow layout error

Feed from this thread
  • Niels avatar

    Posted on Dec 29, 2010 (permalink)

    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


    :edit:
    uploaded clearer images

    Reply

  • Answer Tsvetie Tsvetie admin's avatar

    Posted on Dec 30, 2010 (permalink)

    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">
    </telerik:RadColorPicker>

    Regards,
    Tsvetie
    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.

    Reply

  • Niels avatar

    Posted on Dec 30, 2010 (permalink)

    Thank you that indeed solved my problem !

    Reply

  • Pierre avatar

    Posted on Oct 12, 2011 (permalink)

    Why is the border not showing on the right side
    Thanks in advance for your reply
    Attached files

    Reply

  • Slav Slav admin's avatar

    Posted on Oct 17, 2011 (permalink)

    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.



    Greetings,
    Slav
    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

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > ColorPicker > Colorpicker inside radwindow layout error
Related resources for "Colorpicker inside radwindow layout error"

ASP.NET ColorPicker Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  |  Step-by-step Tutorial  ]