Z
Apr 24, 2022, 3:31 AM
In this example, i select a segmented button and it is highlighted. Using Form.getForm.reset() should clear my selection but it does not.
Please let me know best way to clear it and if you can please resolve for future.
thanks
/Z
<ext-formPanel
id="test123"
width="390"
x-defaultAnchor="100%">
<fieldDefaults>
<ext-add key="labelWidth" value="100" mode="Raw" />
</fieldDefaults>
<defaults>
<ext-add key="margin" value="0 0 10 0" />
</defaults>
<items>
<ext-fieldContainer fieldLabel="<b>test</b>" labelAlign="Top" >
<items>
<ext-segmentedButton >
<items>
<ext-button
text="11"
scale="Medium"
variant=Light
width="130"
iconAlign="Top"
/>
<ext-button
text="22"
width="130"
variant=Light
scale="Medium"
iconAlign="Top"
/>
<ext-button
text="33"
width="130"
scale="Medium"
variant=Light
iconAlign="Top"
/>
</items>
</ext-segmentedButton>
</items>
</ext-fieldContainer>
</items>
<buttons>
<ext-button text="Cancel" iconCls="x-md md-icon-cancel" variant="Danger" onClientClick="App.test123.getForm().reset();" />
</buttons>
</ext-formPanel>
Please let me know best way to clear it and if you can please resolve for future.
thanks
/Z
<ext-formPanel
id="test123"
width="390"
x-defaultAnchor="100%">
<fieldDefaults>
<ext-add key="labelWidth" value="100" mode="Raw" />
</fieldDefaults>
<defaults>
<ext-add key="margin" value="0 0 10 0" />
</defaults>
<items>
<ext-fieldContainer fieldLabel="<b>test</b>" labelAlign="Top" >
<items>
<ext-segmentedButton >
<items>
<ext-button
text="11"
scale="Medium"
variant=Light
width="130"
iconAlign="Top"
/>
<ext-button
text="22"
width="130"
variant=Light
scale="Medium"
iconAlign="Top"
/>
<ext-button
text="33"
width="130"
scale="Medium"
variant=Light
iconAlign="Top"
/>
</items>
</ext-segmentedButton>
</items>
</ext-fieldContainer>
</items>
<buttons>
<ext-button text="Cancel" iconCls="x-md md-icon-cancel" variant="Danger" onClientClick="App.test123.getForm().reset();" />
</buttons>
</ext-formPanel>