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

Colorpicker inside radwindow layout error

4 Answers 79 Views
ColorPicker
This is a migrated thread and some comments may be shown as answers.
Niels
Top achievements
Rank 1
Niels asked on 29 Dec 2010, 11:13 AM
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

4 Answers, 1 is accepted

Sort by
0
Accepted
Tsvetie
Telerik team
answered on 30 Dec 2010, 12:52 PM
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.
0
Niels
Top achievements
Rank 1
answered on 30 Dec 2010, 03:53 PM
Thank you that indeed solved my problem !
0
Pierre
Top achievements
Rank 1
answered on 12 Oct 2011, 05:41 PM
Why is the border not showing on the right side
Thanks in advance for your reply
0
Slav
Telerik team
answered on 17 Oct 2011, 12:50 PM
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
Tags
ColorPicker
Asked by
Niels
Top achievements
Rank 1
Answers by
Tsvetie
Telerik team
Niels
Top achievements
Rank 1
Pierre
Top achievements
Rank 1
Slav
Telerik team
Share this question
or