[CLOSED] Hide multiheader in gridpanel

Page 1 of 2 12 LastLast
  1. #1

    [CLOSED] Hide multiheader in gridpanel

    Hi
    Im using the multiheader like in this example https://examples1.ext.net/#/GridPane...Header/Filter/
    Is it possible to hide/show the header on a buttonclick?

    Thanks
    Mikael
  2. #2
    Show
    GridPanel1.el.select(".x-grid3-add-row").addClass("x-hidden");
    GridPanel1.view.refresh();
    Hide
    GridPanel1.el.select(".x-grid3-add-row").removeClass("x-hidden");
    GridPanel1.view.refresh();
  3. #3
    Thanks, is there a possibility to check what the status of hide/show are. I was aiming for a toggle button for the hide/show.
  4. #4
    I dont get the "hide code" to work. Its still there after I execute it? Im using IE8
  5. #5
    Use
    GridPanel1.el.select(".x-grid3-add-row").hasClass("x-hidden");
  6. #6
    Do you get it to work in IE8?
  7. #7
    Another attempt :)
    GridPanel1.el.select(".x-grid3-add-row").first().hasClass("x-hidden")
  8. #8
    It works, you have just mixed up the code for hide/show.

    Thanks!
  9. #9
    One last thing, how do I hide the header when the page loads. I want it do be hidden as default
  10. #10
    Call hide code in ViewReady event of the grid
Page 1 of 2 12 LastLast

Similar Threads

  1. Gridpanel multiheader From To date filter
    By nomz in forum 2.x Help
    Replies: 4
    Last Post: Oct 26, 2012, 10:39 AM
  2. [CLOSED] GridPanel Multiheader Filtering is not editable
    By ppqrnd in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: May 11, 2012, 11:23 AM
  3. Replies: 2
    Last Post: May 11, 2012, 3:45 AM
  4. Replies: 2
    Last Post: Nov 30, 2010, 9:41 AM
  5. Replies: 2
    Last Post: Feb 11, 2009, 7:04 AM

Posting Permissions