[OPEN] [#1635] [4.8.1] Checking Checkbox via JS
Support,
I am having trouble a something very simple. I want to check the BBBB box every time i show the Window. I used the setValue function and i cannot get it to work at all. per docs (https://docs.sencha.com/extjs/6.7.0/...ethod-setValue), there are 4 allowed values i can set and none work!
see example and pls assist.
thanks
/Z
Code:
<%@ Page Language="C#" %>
<!DOCTYPE html>
<html>
<head id="Head2" runat="server">
<title>Test</title>
</head>
<body>
<ext:ResourceManager ID="ResourceManager2" runat="server" Theme="NeptuneTouch" />
<ext:Viewport ID="Viewport1" runat="server" Layout="VBoxLayout">
<LayoutConfig>
<ext:VBoxLayoutConfig Align="Stretch" />
</LayoutConfig>
<Items>
<ext:Button runat="server" Text="PRESS ME">
<Listeners>
<Click Handler="App.bbbb.setValue('1');App.winme.show()" />
</Listeners>
</ext:Button>
</Items>
</ext:Viewport>
<ext:Window
runat="server"
ID="winme"
Icon="ApplicationFormAdd"
Width="400"
AutoHeight="true"
Hidden="true"
Modal="true"
Constrain="true">
<Items>
<ext:FieldSet runat="server"
Layout="HBoxLayout"
PaddingSpec="0 0 0 30"
WidthSpec="100%"
>
<LayoutConfig>
<ext:HBoxLayoutConfig Align="Stretch" Pack="Center" />
</LayoutConfig>
<Items>
<ext:Checkbox ID="aaaa" BoxLabel="AAAA" runat="server" Note="SOME AAAA" Flex="1" />
<ext:Checkbox ID="bbbb" BoxLabel="BBBB" runat="server" Note="SOME BBBB" Flex="1" />
<ext:Checkbox ID="cccc" BoxLabel="CCCC" runat="server" Note="SOME CCCC" Flex="1" />
</Items>
</ext:FieldSet>
</Items>
</ext:Window>
</body>
</html>