Pop Up Over Icon

2 posts, 0 answers
  1. Jim
    Jim avatar
    2 posts
    Member since:
    Jan 2008

    Posted 18 Jan 2008 Link to this post

    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.
  2. Petio Petkov
    Admin
    Petio Petkov avatar
    825 posts

    Posted 22 Jan 2008 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top