FineUI 官方论坛
标题:
Sanshi老大请进来一下,还是关于MenuCheckBox的BUG
[打印本页]
作者:
飘移
时间:
2013-4-28 23:15
标题:
Sanshi老大请进来一下,还是关于MenuCheckBox的BUG
ASPX:
<x:Grid ID="Grid1" ShowBorder="true" ShowHeader="true" Title="表格" Width="800px"
runat="server" DataKeyNames="Guid" EnableColumnHide="true">
<Toolbars>
<x:Toolbar runat="server" ID="tb1">
<Items>
<x:Button runat="server" ID="btnDropDown" Text="下拉菜单" EnablePostBack="false">
<Menu runat="server">
<x:MenuCheckBox runat="server" Text="静态声明" Checked="true"></x:MenuCheckBox>
</Menu>
</x:Button>
</Items>
</x:Toolbar>
</Toolbars>
<Columns>
</Columns>
</x:Grid>
CS:
protected void Page_Init(object sender, EventArgs e)
{
MenuCheckBox mcb = new MenuCheckBox();
btnDropDown.Menu.Items.Add(mcb);
mcb.ID = "mcbDynamic";
mcb.Text = "动态生成";
mcb.Checked = true;
mcb.CheckedChanged += mcb_CheckedChanged;
}
protected void mcb_CheckedChanged(object sender, EventArgs e)
{
MenuCheckBox mcb = (MenuCheckBox) sender;
Alert.Show(mcb.Text);
}
现象:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
每一次点击"静态声明"都会激发CheckedChanged事件, 而只有奇数次点击"动态生成"会激发CheckedChanged事件.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
请Sanshi老大处理一下.
欢迎光临 FineUI 官方论坛 (https://fineui.com/BBS/)
Powered by Discuz! X3.4