Nov 04, 2010, 4:28 PM
[CLOSED] ComponentMenuItem: the best way to hide/deactivate?
Hi all,
i have a ComponentMenuItem with a FormPanel inside. I have also some buttons.
The MenuItem should disappear when the button is clicked.
Which is the best way to achive it?
i have a ComponentMenuItem with a FormPanel inside. I have also some buttons.
The MenuItem should disappear when the button is clicked.
Which is the best way to achive it?
<ext:Toolbar ID="Toolbar1" runat="server">
<Items>
<ext:Button ID="Button1" runat="server" Text="Click">
<Menu>
<ext:Menu ID="Menu1" runat="server">
<Items>
<ext:ComponentMenuItem ID="MenuItem" Shift="true">
<Component>
<ext:FormPanel ID="FormPanel1"
runat="server"
Border="false"
Padding="5"
Layout="form"
LabelAlign="Top"
MonitorValid="true"
BodyStyle="background-color:transparent;">
<Items>
<ext:TextField
runat="server"
ID="TextField"
Width="200"
MsgTarget="Title"
AllowBlank="false"
FieldLabel="String" />
</Items>
<Listeners>
<ClientValidation Handler="Button.setDisabled(!valid);" />
</Listeners>
<Buttons>
<ext:Button ID="Button" runat="server" Text="Ok" Icon="BulletTick">
<Listeners>
<Click Handler="MenuItem.hide();" />
</Listeners>
</ext:Button>
</Buttons>
</ext:FormPanel>
</Component>
</ext:ComponentMenuItem>
</Items>
</ext:Menu>
</Menu>
</ext:Button>
</Items>
</ext:Toolbar>
Last edited by Daniil; Nov 05, 2010 at 10:40 AM.
Reason: [CLOSED]