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

Pop Up Over Icon

1 Answer 117 Views
ColorPicker
This is a migrated thread and some comments may be shown as answers.
Jim
Top achievements
Rank 1
Jim asked on 18 Jan 2008, 09:00 PM
I'm having the problem that if you click on the pickers icon when it is towards the bottom of the screen it pops the pallete over the icon on mouse down but then it hides it on mouse up.  The only way we can get it to work is to mouse down on the icon and then drag off of the icon over the pallete before we mouse up.  Once we do that it works fine.

Any ideas?  There is plenty of room above the icon so it would be nice if it aligned the bottom of it to top of the icon.

1 Answer, 1 is accepted

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

We already fixed this bug and the fix will appear for the next release of RadControls Prometheus.
For the moment 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> 
 



Regards,
Petio Petkov
the Telerik team

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