PDA

View Full Version : Problems with the check tree



EFTAS_dev
23 Sep 2013, 7:24 AM
Hi everyone,

I have the following problem:
I use a simple check tree, such as this one: http://docs.sencha.com/extjs/4.2.1/extjs-build/examples/build/KitchenSink/ext-theme-neptune/#check-tree

I would like to intercept the event 'double-click', when the user clicks the checkbox in a Treepanel. There is e.g. the event 'itemdblclick', but this is only thrown when I double click the line and not the checkbox itself. The event is not triggered when I double click the checkbox. Consequently, I cannot catch the event 'double-click' when the user double-clicks on such a checkbox. Is there a possibility to catch such an event?

We come to the next problem:
Is there a possibility to disable the checkbox in a treepanel? Or rather, how can I access this checkbox?

Best regards!

EFTAS_dev
10 Oct 2013, 2:27 AM
Maybe someone has a suggestion to solve the problem?

Cheers

ettavolt
10 Oct 2013, 5:28 AM
I believe there is already some 'dblclick' handler that may prevent event from firing.
Or it may be canceled on ordinary 'click' processing.

EFTAS_dev
10 Oct 2013, 8:05 AM
Unfortunately, only one "celldblclick" handler exists for the Treepanel. The problem is: This event is not thrown when the user clicks the checkbox. But I would like to catch this event when the user double-clicks the checkbox.

Best regards!