Oct 12, 2017, 2:01 AM
[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
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
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
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>
CSusing 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.