Accordion and SaveState

  1. #1

    Accordion and SaveState

    Hi,

    seems that panels inside accordion do not fire SaveState ajax event. Any particular reason?

    Regareds,
    Jure
  2. #2

    RE: Accordion and SaveState

    Hi Jure,

    Try to set StateEvents for accordion panels

    <ext:Panel ID="Panel4" runat="server" StateEvents="collapse,expand">
        <Listeners>
            <StateSave Handler="alert('state');" />
        </Listeners>
    </ext:Panel>
  3. #3

    RE: Accordion and SaveState

    The event is fired now. But now it looks like state parameter is null. Any suggesstions there?
  4. #4

    RE: Accordion and SaveState

    Hi,

    The panel and accordion layout does not provide any automatical state therefore the state is null. You should override js function getState which return data.


    For example the Window return position and size in getData function




Similar Threads

  1. [OPEN] [#39] [2.0] GridPanel in Accordion
    By Timothy in forum 2.x Legacy Premium Help
    Replies: 12
    Last Post: Nov 17, 2012, 12:41 AM
  2. Replies: 5
    Last Post: Nov 11, 2010, 7:33 PM
  3. Accordion layout
    By Elie.fakhry in forum 1.x Help
    Replies: 1
    Last Post: Oct 12, 2010, 8:53 PM
  4. "Accordion" events ?
    By Zhivko in forum 1.x Help
    Replies: 1
    Last Post: Feb 24, 2010, 9:41 AM
  5. ext.Accordion in code behind
    By filip.beunens in forum 1.x Help
    Replies: 4
    Last Post: Jan 20, 2010, 2:47 PM

Posting Permissions