[CLOSED] Collapse - Expand Panels?

Page 1 of 2 12 LastLast
  1. #1

    [CLOSED] Collapse - Expand Panels?

    Hi, I have 3 Panels, I need that when I expand one panel the other two collapse, i need only one panel expanded at a time.
    I can´t view the BorderLayout example page, a error on Tabs appears.

    Thanks!
    Ariel

    pd:sorry my English!

  2. #2

    RE: [CLOSED] Collapse - Expand Panels?

    Hello MrMp3,

    You can do this 2 possible ways; the first being client-side using the Ext:Panel listeners:

    <ext:Panel ID="Panel1" runat="server">
    <Listeners>
    <Collapse Handler="#{Panel2}.collapse(); #{Panel3}.collapse();" />
    </Listeners>
    <Content>
    Word
    </Content>
    </ext:Panel>
    <ext:Panel ID="Panel2" runat="server"> ... </ext:Panel>
    <ext:Panel ID="Panel3" runat="server"> ... </ext:Panel>
    You can also do this server-side with the Ext:Panel AjaxEvents, let me know if you want the server-side example.

    Cheers,
    Timothy
  3. #3

    RE: [CLOSED] Collapse - Expand Panels?

    Thanks for the answer! I really need the server-side code please!! and thanks again!!!
  4. #4

    RE: [CLOSED] Collapse - Expand Panels?

    No problem, here is an example:

    Server-side:
    protected void Panel1_Collapse(object sender, AjaxEventArgs e)
    {
        Panel2.Collapsed=true;
        Panel3.Collapsed=true;
    }
    <ext:Panel ID="Panel1" runat="server">
    <AjaxEvents>
    <Collapse OnEvent="Panel1_Collapse" />
    </AjaxEvents>
    <Content>
    Word
    </Content>
    </ext:Panel>
    <ext:Panel ID="Panel2" runat="server"> ... </ext:Panel>
    <ext:Panel ID="Panel3" runat="server"> ... </ext:Panel>
    Cheers,
    Timothy
  5. #5

    RE: [CLOSED] Collapse - Expand Panels?

    Here is an example on how to toggle the 2nd and 3rd panel based on the 1st panel:

    Server-side:
    protected void Panel1_CollapseExpand(object sender, AjaxEventArgs e)
    {
        Panel2.Collapsed=Panel1.Collapsed;
        Panel3.Collapsed=Panel1.Collapsed;
    }
    ASP.NET:
    <ext:Panel ID="Panel1" runat="server">
    <AjaxEvents>
    <Collapse OnEvent="Panel1_CollapseExpand" />
    <Expand OnEvent="Panel1_CollapseExpand" />
    </AjaxEvents>
    <Content>
    Word
    </Content>
    </ext:Panel>
    <ext:Panel ID="Panel2" runat="server"> ... </ext:Panel>
    <ext:Panel ID="Panel3" runat="server"> ... </ext:Panel>
    Hope that helps further.

    Cheers,
    Timothy
  6. #6

    RE: [CLOSED] Collapse - Expand Panels?

    mmmm.....I haven´t AjaxEvents on panels :(

    I have Buttons, Content, Listeners, LoadMask!!
  7. #7

    RE: [CLOSED] Collapse - Expand Panels?

    Oops, you using 0.6.0 or 0.5.4 ?

    My examples are 0.6 !

    Cheers,
    Timothy
  8. #8

    RE: [CLOSED] Collapse - Expand Panels?

    I use 0.5.4 :( where i can download 0.60?

  9. #9

    RE: [CLOSED] Collapse - Expand Panels?

    You will need to talk to Geoffrey regarding getting a pre preview version of 0.6; or you can use the client-side example I gave you using the Listeners property.

    Cheers,
    Timothy
  10. #10

    RE: [CLOSED] Collapse - Expand Panels?

    Thanks for your time!!

Page 1 of 2 12 LastLast

Similar Threads

  1. [CLOSED] Expand/Collapse of IFrame Panel
    By randy85253 in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 16, 2012, 7:47 AM
  2. Replies: 3
    Last Post: Aug 11, 2011, 11:07 AM
  3. [CLOSED] Collapse/Expand reloads on FF
    By george in forum 1.x Help
    Replies: 7
    Last Post: May 05, 2011, 8:32 PM
  4. Replies: 1
    Last Post: May 06, 2009, 2:15 PM
  5. Sub Panels Sometimes Disappear on Collapse
    By mathec in forum 1.x Help
    Replies: 4
    Last Post: Jan 28, 2009, 5:17 PM

Posting Permissions