Jun 24, 2010, 12:14 PM
CheckMenuItem bug?
Hi! I have a button with a menu and some CheckMenuItem.
This code is inside a user control "DETALLE" which is inside a window:
The procedure to reproduce the problem is: I open the window and check
some options in the menu. Then, I close the window, which calls the
function "Limpiar" (clean) where I set the checked property of every
CheckMenuItem to false. When I open the window again, the CheckMenuItem
looks clean (all of them not checked), but if I look the Checked
property, it's set to true in the ones which I checked before.
Is it the right behaviour of the control? How can I solve it?
Thanks!
<ext:Button ID="btnModulo" runat="server"
StyleSpec="display:inline;" Text="Módulo">
<Menu>
<ext:Menu ID="mnuModulo" runat="server"
Width="200">
<Items>
<ext:CheckMenuItem ID="A" runat="server"
Text="(A)" Hideonclick="false" />
<ext:CheckMenuItem ID="B" runat="server"
Text="(B)" Hideonclick="false" />
</Items>
</ext:Menu>
</Menu>
<Listeners>
<MenuHide Handler="
#{AjaxMethods}.Seleccionar();" />
</Listeners>
</ext:Button>
This code is inside a user control "DETALLE" which is inside a window:
<ext:Window ID="winNuevo" Showonload="false" runat="server"
Width="350px" Height="280px"
Title="Nuevo" Icon="UserAdd">
<Listeners>
<Hide Handler="Coolite.AjaxMethods.BODY_DETALLE.Limpiar()"
/>
</Listeners>
<Body>
<ext:Panel>
<uc1:DETALLE ID="DETALLE" runat="server" />
</ext:Panel>
</Body>
</ext:Window>
The procedure to reproduce the problem is: I open the window and check
some options in the menu. Then, I close the window, which calls the
function "Limpiar" (clean) where I set the checked property of every
CheckMenuItem to false. When I open the window again, the CheckMenuItem
looks clean (all of them not checked), but if I look the Checked
property, it's set to true in the ones which I checked before.
Is it the right behaviour of the control? How can I solve it?
Thanks!