[Bug] 'EnableOverflow' of Toolbar

  1. #1

    [Bug] 'EnableOverflow' of Toolbar

    I had posted an article about this problem before, title 'The control with ID 'menuitem-1081' not found'.

    Yesterday I found that this problem may be a bug in 4.1.0 version.

    Here's the three conditions cause this situation:

    1. 'EnableOverflow' of Toolbar set true
    2. Toolar overflows in a situation
    3. Click a button hid in it with a direct event

    Click image for larger version. 

Name:	Ext_Bug.jpg 
Views:	76 
Size:	12.1 KB 
ID:	25061

    When click the button, it showed 'The control with ID 'menuitem-1020' not found'.It showed the button could not be found.But if I set a postback event instead of a direct event in this button, it worked just fine which made me so confused.

    Here's the test code
    Aspx
    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="Ext" %>
    
    <!DOCTYPE html>
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
        <Ext:ResourceManager ID="ScriptManager1" runat="server">
        </Ext:ResourceManager>
        <div>
            <Ext:GridPanel runat="server">
                <TopBar>
                    <Ext:Toolbar runat="server" EnableOverflow="true">
                        <Items>
                            <Ext:Label runat="server" Text="placeholder" />
                            <Ext:Button runat="server" Width="300"></Ext:Button>
                            <Ext:Label runat="server" Text="placeholder" />
                            <Ext:Button runat="server" Width="300"></Ext:Button>
                            <Ext:Label runat="server" Text="placeholder" />
                            <Ext:Button runat="server" Width="300"></Ext:Button>
                            <Ext:Label runat="server" Text="placeholder" />
                            <Ext:Button runat="server" Width="300"></Ext:Button>
                            <Ext:Button runat="server" Text="Direct Event">
                                <DirectEvents>
                                    <Click OnEvent="Direct_Event" Timeout="3600000">
                                    </Click>
                                </DirectEvents>
                            </Ext:Button>
                        </Items>
                    </Ext:Toolbar>
                </TopBar>
            </Ext:GridPanel>
        </div>
        </form>
    </body>
    </html>
    CS
    using System;
    using Ext.Net;
    
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
    
        }
    
        protected void Direct_Event(object sender, DirectEventArgs e)
        {
    
        }
    }
    Last edited by eko; Oct 12, 2017 at 3:09 AM.

Similar Threads

  1. [CLOSED] Problem with EnableOverflow="true" in a Toolbar
    By bluenext in forum 3.x Legacy Premium Help
    Replies: 2
    Last Post: May 25, 2015, 7:10 AM
  2. [CLOSED] Toolbar EnableOverflow="true" (ext 2.5.2)
    By snow_cap in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Jan 29, 2015, 4:46 PM
  3. Replies: 7
    Last Post: Jul 10, 2013, 2:19 PM
  4. Replies: 1
    Last Post: Mar 07, 2011, 9:39 AM
  5. Replies: 1
    Last Post: Dec 13, 2010, 2:10 PM

Posting Permissions