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?
Listen to the before collapse/expand events on the ContentPanel, and invoke .setCancelled(true) to prevent the expand or collapse operation from being performed.
Tags for this Thread