1 Attachment(s)
[CLOSED] Destroying fields when RightButtons is defined
On the following example, press Clear Fields button: exception is thrown when destroying a field with RightButtons defined.
Attachment 24178
The exception is thrown because Ext.remove is undefined, so we can expect the same exception if LeftButtons is defined
Code:
<!DOCTYPE html>
<html>
<head runat="server">
</head>
<body>
<ext:ResourceManager Theme="Crisp" ScriptMode="Debug" runat="server" />
<ext:Button Text="Clear Fields" runat="server">
<Listeners>
<Click Handler="App._fs.removeAll();" />
</Listeners>
</ext:Button>
<ext:FieldSet ID="_fs" Title="Fields" runat="server">
<Items>
<ext:TextField FieldLabel="Field 001" runat="server">
<RightButtons>
<ext:Button Icon="Lightning" runat="server" />
</RightButtons>
</ext:TextField>
<ext:TextField FieldLabel="Field 002" runat="server" />
</Items>
</ext:FieldSet>
</body>
</html>