Feb 01, 2015, 9:53 PM
[CLOSED] The Property "checked" of a Checkbox ist not set, when it create through a DirectMethod
Hello,
I create through the DirectMethod "GetCheckbox" a checkbox element in a panel toolbar. But the property "Checked" of the checkbox-element is not set. I used the Ext-Version 3.0.0.
Can you please help with this case?
Thanks in advance
I create through the DirectMethod "GetCheckbox" a checkbox element in a panel toolbar. But the property "Checked" of the checkbox-element is not set. I used the Ext-Version 3.0.0.
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<ext:ResourceManager ID="RSM" runat="server" EnableViewState="true" AjaxViewStateMode="Enabled"></ext:ResourceManager>
<table>
<tr>
<td>
<ext:Button ID="cmdGet" Icon="Add" runat="server">
<Listeners>
<Click Handler="App.direct.GetCheckbox()"></Click>
</Listeners>
</ext:Button>
</td>
</tr>
<tr>
<td>
<ext:Container ID="Con" runat="server" Height="500" Width="500">
</ext:Container>
</td>
</tr>
</table>
</form>
</body>
<Ext.Net.DirectMethod>
Public Sub GetCheckbox()
Dim oPanel As Ext.Net.Panel
Dim oToolbar As Ext.Net.Toolbar
Dim ocheckbox As Ext.Net.Checkbox
oPanel = New Ext.Net.Panel
With oPanel
.ID = "myPanel"
.Height = System.Web.UI.WebControls.Unit.Pixel(200)
.Width = System.Web.UI.WebControls.Unit.Pixel(200)
.Title = "mypanel"
oToolbar = New Ext.Net.Toolbar
With oToolbar
.ID = "mytoolbar"
End With
.TopBar.Add(oToolbar)
ocheckbox = New Ext.Net.Checkbox
With ocheckbox
.ID = "mycheckbox"
.Checked = True
.FieldLabel = "checkbox"
End With
oToolbar.Add(ocheckbox)
End With
Con.Add(oPanel)
Con.UpdateContent()
End Sub
Can you please help with this case?
Thanks in advance
Last edited by Daniil; Feb 02, 2015 at 9:48 AM.
Reason: [CLOSED]