Mar 17, 2009, 12:09 PM
[CLOSED] CycleButton - adding menu items in code behind
When adding items to a cyclebutton's menu using code the items don't 'cycle' as expected, they simply remain checked.
Using items in the markup works as expected.
Am I right to be using CycleButton and CheckMenuItem?
Using items in the markup works as expected.
Am I right to be using CycleButton and CheckMenuItem?
<ext:CycleButton ID="cycleTest" runat="server" ShowText="true">
<Menu>
<ext:Menu ID="menuTest" runat="server" />
</Menu>
</ext:CycleButton>
Dim item1 As New CheckMenuItem()
item1.Text = "Test"
item1Checked = True
menuTest.Items.Add(item1)
Dim item2 As New CheckMenuItem()
item2.Text = "Test 2"
menuTest.Items.Add(item2)