Results 1 to 3 of 3

Thread: Panel not expanding-collapsing when item grid panel have headerCt is hidden

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User SurenderBhyan1's Avatar
    Join Date
    Nov 2013
    Location
    INDIA
    Posts
    130

    Default Panel not expanding-collapsing when item grid panel have headerCt is hidden

    Hi

    I am not sure its a bug or missing something. Please guide.

    Plateform : Extjs 4.2.1
    Browser: Chrome, FF


    Description:


    I have a collapsible panel and inner item is a grid. In some cases store have no data and in that case I don't want to show grid column header, its working. But when I try to collapse / expand the panel. Its not toggling at all.

    for now I am hiding the column header using below snippet:
    Code:
    grid.headerCt.setVisible(grid.store.count() !== 0);
    Here is the fiddle:
    https://fiddle.sencha.com/#fiddle/1gjl




    Any help will be appreciated
    ---A ship in the harbor is safe, but that is not what the ships are made for...

  2. #2
    Sencha User SurenderBhyan1's Avatar
    Join Date
    Nov 2013
    Location
    INDIA
    Posts
    130

    Default

    Never mind, I achieved the same with below config on grid itself

    Code:
    hideHeaders: (store.data && store.data.length == 0 ? true : false)
    ---A ship in the harbor is safe, but that is not what the ships are made for...

  3. #3
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985

    Default

    Thanks for following up. Yes, that seems to be the way to go.

Similar Threads

  1. [OPEN] Bug with collapsing a hidden panel
    By qelan in forum Ext JS 6.x Bugs
    Replies: 2
    Last Post: 19 Aug 2016, 12:27 PM
  2. [INFOREQ] Tree Panel is not expanding or collapsing in IE10 (window 8).
    By owais.zahid in forum Ext 3.x: Bugs
    Replies: 6
    Last Post: 16 Oct 2013, 6:18 AM
  3. Expanding/collapsing table or panel
    By drathnow in forum Sencha Touch 2.x: Q&A
    Replies: 2
    Last Post: 2 Apr 2013, 10:20 PM
  4. Replies: 1
    Last Post: 18 Nov 2011, 2:29 PM
  5. Replies: 3
    Last Post: 9 Mar 2011, 10:18 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •