Mar 27, 2012, 3:30 PM
[CLOSED] Add items to FormPanel during a DirectEvent
I'm trying to populate a form with a bunch of checkboxes that are required to be checked for the form to be valid. I can't get anything to display.
Here's a sample that reproduces what I'm seeing:
Here's a sample that reproduces what I'm seeing:
<script runat="server">
Protected Sub TheButton_Click(sender As Object, e As DirectEventArgs)
Dim conditions = New String() {
"Lorem ipsum dolor sit amet, consectetur adipiscing elit",
"Integer tincidunt dui et eros cursus luctus",
"Aliquam vehicula nisi tristique nisl volutpat nec mollis nulla varius",
"Vestibulum porttitor, nunc at viverra posuere, metus magna rutrum sem, nec pretium magna eros sed eros",
"Nulla vehicula libero vitae arcu mollis ornare"
}
For Each c In conditions
TheForm.Items.Add(New Ext.Net.Checkbox With {.BoxLabel = c})
Next
End Sub
</script>
<ext:FormPanel ID="TheForm" runat="server" Title="The Form" DefaultAnchor="100%" />
<ext:Button runat="server" Text="Add Items" OnDirectClick="TheButton_Click" />
Last edited by Daniil; Mar 27, 2012 at 4:53 PM.
Reason: [CLOSED]