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

Colorpicker changes lay-out after postback

1 Answer 52 Views
ColorPicker
This is a migrated thread and some comments may be shown as answers.
P.J. Keukens
Top achievements
Rank 1
P.J. Keukens asked on 29 Jun 2010, 11:45 AM
Hi There,

We are using the Telerik RadColorPicker in our application. The definition we use is shown below.

<telerik:RadColorPicker ID="rcpKleurLicht" runat="server"

                            PaletteModes="HSV"

                            PreviewColor="true"

                            ShowIcon="true"

                            Width="185px"

                            Skin="Windows7"

                            ShowEmptyColor="false">

                        </telerik:RadColorPicker>

We have the following problem. The first time we load the controls everything is fine, we put our defined color in the SelectedColor and it shows op as an icon. If you click on it you see the HSV window. Then we save our data using a normal postback and edit the item again. Now the lay-out of the color picker changes, to something completely different. Can anybody explain us why this happens?

We use Telerik for ASP.NET/AJAX version 2009.3.1314.35

I've attached a document to show the layout change.

Thanks in advance.

Patrick

1 Answer, 1 is accepted

Sort by
0
Tsvetie
Telerik team
answered on 29 Jun 2010, 03:06 PM
Hi P.J. Keukens,
It seems that for some reason, the styles from the embedded CSS files are not applied the second time. You can try registering the necessary CSS files manually, to see if this would fix the problem.

For example:
<head runat="server">
    <title></title>
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
        <link href='<%= Page.ClientScript.GetWebResourceUrl(typeof(RadColorPicker), "Telerik.Web.UI.Skins.ColorPicker.css") %>'
            rel="stylesheet" type="text/css" />
        <link href='<%= Page.ClientScript.GetWebResourceUrl(typeof(RadColorPicker), "Telerik.Web.UI.Skins.Windows7.ColorPicker.Windows7.css") %>'
            rel="stylesheet" type="text/css" />
    </telerik:RadCodeBlock>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
        <telerik:RadColorPicker ID="RadColorPicker1" runat="server"

In case this does not help you, please open a new support ticket and send me a running test project that demonstrates the problem.

Regards,
Tsvetie
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
ColorPicker
Asked by
P.J. Keukens
Top achievements
Rank 1
Answers by
Tsvetie
Telerik team
Share this question
or