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

RadColorPicker Loses Colors On Postback

1 Answer 69 Views
ColorPicker
This is a migrated thread and some comments may be shown as answers.
Brandon Spilove
Top achievements
Rank 1
Brandon Spilove asked on 12 May 2009, 03:59 PM

This is very easy to duplicate.  See the code below.  Click the Submit button and when the page reloads, the colors are gone.  Is this a bug in the control or am I missing a property?

Visual Studio 2008
.Net Framework 3.5
Telerik.Web.UI.dll 2009.1.311.35

 

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="www.Default" %> 
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml" > 
<head runat="server">  
    <title>Untitled Page</title> 
</head> 
<body> 
    <form id="form1" runat="server">  
    <div> 
    <asp:ScriptManager ID="sm" runat="server" /> 
    <telerik:RadColorPicker ID="rcpColor1" runat="server" Preset="None" 
    > 
        <telerik:ColorPickerItem Title="Black" Value="#000000" /> 
        <telerik:ColorPickerItem Title="White" Value="#FFFFFF" /> 
        <telerik:ColorPickerItem Title="Red" Value="#FF0000" /> 
        <telerik:ColorPickerItem Title="Blue" Value="#0000FF" /> 
        <telerik:ColorPickerItem Title="Green" Value="#00FF00" /> 
        <telerik:ColorPickerItem Title="Yellow" Value="#FFFE00" /> 
        <telerik:ColorPickerItem Title="Orange" Value="#FF6600" /> 
        <telerik:ColorPickerItem Title="Purple" Value="#9900CA" /> 
    </telerik:RadColorPicker><br /> 
    <asp:Button ID="btn" runat="server" Text="Submit" /> 
    </div> 
    </form> 
</body> 
</html> 

 

 

1 Answer, 1 is accepted

Sort by
0
Tsvetie
Telerik team
answered on 13 May 2009, 08:38 AM
Hello Brandon Spilove,
This is a bug in the RadColorPicker control. The good news is that we have already fixed it - the fix is part of the latest internal build that you can download from here.

Kind regards,
Tsvetie
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
ColorPicker
Asked by
Brandon Spilove
Top achievements
Rank 1
Answers by
Tsvetie
Telerik team
Share this question
or