Aug 27, 2013, 2:54 PM
[CLOSED] AutoSize issues with DateField contained in an HBox, when changing its ReadOnly flag
Hi,
I am experiencing this issue when changing the readOnly status of a DateField control that is contained on a HBox container: in this case a Viewport.
Basically at each toggle of "setReadOnly" the width of the field reduces until disappears from the UI... if you resize the browser, the layout is correctly recalculated.
Here is the sample code. We're using Ext.Net 1.7. Thank you for help.
I am experiencing this issue when changing the readOnly status of a DateField control that is contained on a HBox container: in this case a Viewport.
Basically at each toggle of "setReadOnly" the width of the field reduces until disappears from the UI... if you resize the browser, the layout is correctly recalculated.
Here is the sample code. We're using Ext.Net 1.7. Thank you for help.
<ext:ViewPort Layout="HBoxLayout" runat="server" >
<LayoutConfig>
<ext:HBoxLayoutConfig Align="Stretch" />
</LayoutConfig>
<Items>
<ext:DateField ID="DateField1" runat="server" FieldLabel="Date 1" Flex="1" />
<ext:TextField ID="TextField1" runat="server" FieldLabel="Text 1" Flex="1" />
<ext:TextField ID="TextField2" runat="server" FieldLabel="Text 2" Flex="1" />
<ext:Button Text="Toggle ReadOnly" Width="100" runat="server" >
<Listeners>
<Click Handler="#{DateField1}.setReadOnly(!#{DateField1}.readOnly);" />
</Listeners>
</ext:Button>
</Items>
</ext:ViewPort>
Last edited by Daniil; Sep 03, 2013 at 4:39 AM.
Reason: [CLOSED]