Jun 16, 2009, 10:46 AM
[CLOSED] Accordion Select Item
Can you select an item in the accordion from the code behind by the items ID on the pages load?
aspx page:
Cheers
CMA
aspx page:
<ext:Accordion ID="AccordionMainMenu" runat="server">
<ext:MenuPanel ID="MenuPanelMain" runat="server" Title="Main Menu" Icon="Application" Width="150">
<Menu runat="server">
<Items>
<ext:MenuItem ID="ItemID1" runat="server" Text="Item 1" Icon="UserMagnify">
</ext:MenuItem>
<ext:MenuItem ID="ItemID2" runat="server" Text="Item 2" Icon="UserStar">
</ext:MenuItem>
</Items>
</Menu>
</ext:MenuPanel>
</ext:Accordion>
Codebehind: (this is what functionality I'm looking for)Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Me.AccordionMainMenu.ActiveItem = "ItemID2"
End Sub
Does this functionality exist to select an item in the code behind that the expands and selects the item?Cheers
CMA