[CLOSED] Accordion like layout

  1. #1

    [CLOSED] Accordion like layout

    I'm looking to implement layout which will be same as Accordion, but it will not collapse other panels if I select one of them. So basically user will control where expand and collapse panels. Any suggestions?
    Last edited by Daniil; Feb 20, 2012 at 3:12 PM. Reason: [CLOSED]
  2. #2
    Hi,

    I would look into using these events of the Panel.
    http://docs.sencha.com/ext-js/3-4/#!...beforecollapse
    http://docs.sencha.com/ext-js/3-4/#!...t-beforeexpand

    Here is the some example of custom accordion layout.
    http://forums.ext.net/showthread.php...ll=1#post68546

    Hope this helps.

    but it will not collapse other panels if I select one of them
    Though I'm not 100% sure it would be best to override/extend the AccordionLayout to achieve this requirement. Maybe, you will need to implement your custom layout class.

    Though, at the first of all, I would look into a possibility to use BeforeCollapse and BeforeExpand events.
  3. #3
    Hi,

    I suggest to use standard layout, in this case you can collapse/expand items as you need

    <ext:Panel runat="server">
         <Items>
                  <ext:Panel runat="server" Collapsible="true" Height="100" />
                  <ext:Panel runat="server" Collapsible="true" Collapsed="true" Height="100" />
         </Items>
    </ext:Panel>
  4. #4
    Works good fro me.Thanks.

Similar Threads

  1. [CLOSED] Accordion Layout Style Issue
    By softmachine2011 in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Jun 25, 2012, 2:36 PM
  2. [CLOSED] Gridview not showing in Accordion Layout
    By trezv in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: May 31, 2012, 11:45 AM
  3. [CLOSED] custom accordion layout issue
    By nhg_itd in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Dec 30, 2011, 12:32 AM
  4. Accordion layout
    By Elie.fakhry in forum 1.x Help
    Replies: 1
    Last Post: Oct 12, 2010, 8:53 PM
  5. spotlight on Accordion layout
    By Sameera in forum 1.x Help
    Replies: 0
    Last Post: Jan 27, 2010, 8:10 PM

Posting Permissions