[1.0] How to get active item index of Accordion Layout in code-behind?

  1. #1

    [1.0] How to get active item index of Accordion Layout in code-behind?

    Hi,

    Is there an easy way of getting the active item of an accordion layout in code-behind?
    (I am using a panel as the accordion container with layout="accordion".)

    In v0.8 there was an activeIndex property which easily gives the index of the active item.

    In fact, I found a work-around using extraparams of a directevent.

    Thanks,


    TheDarkLord
  2. #2

    RE: [1.0] How to get active item index of Accordion Layout in code-behind?

    Hi,

    If you use AccordionLayout control then you can use ExpandedPanelIndex property of that control
    If you use Layout="Accordion" then you can iterate through the Items property of the container anc check Collapsed == false for each item
  3. #3

    RE: [1.0] How to get active item index of Accordion Layout in code-behind?

    Thanks vladimir,

    Your reply was useful...


    TheDarkLord

Similar Threads

  1. Replies: 5
    Last Post: Nov 11, 2010, 7:33 PM
  2. Replies: 3
    Last Post: Oct 17, 2010, 1:22 PM
  3. Accordion Active/Selected Panel
    By ljcorreia in forum 1.x Help
    Replies: 5
    Last Post: Mar 16, 2010, 1:42 PM
  4. [CLOSED] CardLayout Active Index Layout Prob
    By amitpareek in forum 1.x Legacy Premium Help
    Replies: 10
    Last Post: Jan 25, 2010, 4:28 PM
  5. Replies: 1
    Last Post: Oct 28, 2008, 6:34 AM

Posting Permissions