1. #1
    Sencha User
    Join Date
    Jan 2012
    Posts
    5
    Vote Rating
    0
    jagadeesh9.k is on a distinguished road

      0  

    Default Unanswered: Cancel content panel header click event.

    Unanswered: Cancel content panel header click event.


    I am using gxt3.0.1.

    I am using AccordionLayoutContainer and it has 3 accordions (ContentPanels).
    On click of ContenetPanel header the panel is expanded/collapsed.
    But as per my requierement, contentpanel will be expanded/collapsed programmatically based on certain condition.
    How can i avoid expanding/collapsing ContentPanel on click of ContentPanel's header?

    Thanks!

  2. #2
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,717
    Answers
    109
    Vote Rating
    88
    Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light

      0  

    Default


    Listen to the before collapse/expand events on the ContentPanel, and invoke .setCancelled(true) to prevent the expand or collapse operation from being performed.

Thread Participants: 1

Tags for this Thread