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

ColorChanged event fired unexpectedly

1 Answer 59 Views
ColorPicker
This is a migrated thread and some comments may be shown as answers.
ten23.philip
Top achievements
Rank 1
ten23.philip asked on 18 Jan 2008, 08:54 PM
when color palette is expanded from icon and it expands on top of my mouse cursor because there's not enough room for it to expand below, it selects the color and colorchange event is fired.
i don't get a chance to actually pick a color, but the click to expand the icon to palette picks the color if the palette expands on top of my mouse cursor.
is there any way to pick color on double click or have the palette expand from my cursor instead of the icon?
thanks for the help!

1 Answer, 1 is accepted

Sort by
0
Petio Petkov
Telerik team
answered on 22 Jan 2008, 11:10 AM
Hello,

Thank you for bringing this bug to our attention. We already fix it and the fix will appear in the next release of RadControls Prometheus.
For now you can use the following workaround:
<%@ 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="ScriptManager1" runat="server"></asp:ScriptManager> 
    <div style="width:400px;height:400px"></div> 
        <telerik:RadColorPicker ID="RadColorPicker1" runat="server" ShowIcon="true"></telerik:RadColorPicker> 
    </div> 
    <script type="text/javascript">  
    function Telerik.Web.UI.RadColorPicker.prototype._onIconMouseDown(evt)  
    {     
        evt.preventDefault();  
        evt.stopPropagation();  
    }  
    function Telerik.Web.UI.RadColorPicker.prototype._onIconMouseUp(evt)  
    {     
        if (this._paletteDisplayed)  
        {  
            this.hidePalette();  
        }  
        else  
        {  
            this.showPalette();           
        }  
        evt.preventDefault();  
        evt.stopPropagation();        
    }  
    </script> 
    </form> 
</body> 
</html> 
 

Your points were updated.



Greetings,
Petio Petkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
ColorPicker
Asked by
ten23.philip
Top achievements
Rank 1
Answers by
Petio Petkov
Telerik team
Share this question
or