Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7758869
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T13:28:44+00:00 2026-06-01T13:28:44+00:00

In EXT.Panel, there are two methods for collapsing/expanding a Panel. collapse(Boolean animate) and expand

  • 0

In EXT.Panel, there are two methods for collapsing/expanding a Panel.

collapse(Boolean animate)

and expand (Boolean animate)

calling collapse(true) and expand(true) gives me desired results. But I was hoping to achieve the result of expand(true) by calling collapse(false). But collapse(false) does nothing. Why is this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T13:28:45+00:00Added an answer on June 1, 2026 at 1:28 pm

    because collapse() and expand() functions don’t check if panel is currently in expanded or collapsed mode,
    so if you call expand() on already expanded panel it will silently ignore the function call, you can use toggleCollapse() to collapse/expand based on current state of the panel

    panel.toggleCollapse(true);
    

    Extra:

    the parameter used in collapse/expand functions is animate which just specifies the transition will be animated or not, it doesn’t specify the state of the panel so collpase(false) just means the panel will be collapsed without any animation, but it if panel is already collapsed then function will just silently return without any processing, so in short collapse(false) is not equal to expand(true)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

2 panels: Ext.create('Ext.Container', { fullscreen: true, layout: 'hbox', items: [ { xtype: 'panel', html:
So I have a TabPanel defined like so: panel = new Ext.TabPanel({ fullscreen: true,
how can I expand an ExtJS (version 3.3.1) Component, e.g. a Ext.Panel nested somewhere
I have Ext.tab.Panel with few items. One item is login panel of type Ext.form.Panel.From
I have grid something like this: Ext.define('Exp.view.dashboard.Tv', { extend: 'Ext.grid.Panel', initComponent: function() { this.columns
I've placed panel from this example http://docs.sencha.com/ext-js/4-0/#!/example/dd/dnd_grid_to_grid.html to Ext.window.Window and got an issue: proxy
I have an MVC app in Extjs 4 which has a View (extending Ext.panel.Panel
I create a new element inside Ext.Panel by template i want to add an
There was an Ext.ux.wizard for extjs 2.0 which we could create wizard like forms
how can i get the selected cell of a Ext.grid.Panel? In ExtJS 3 it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.