PDA

View Full Version : How can I get selected items for checkbox tree panel?



xjscrafter
29 Oct 2014, 5:08 PM
TreePanel has getSelectionModel (http://docs.sencha.com/extjs/4.2.2/#!/api/Ext.panel.Table-method-getSelectionModel)( ) and that has getSelection (http://docs.sencha.com/extjs/4.2.2/#!/api/Ext.selection.Model-method-getSelection)( ), but it does not return the selected nodes.

I tried getChecked() but perhaps I am keying off the wrong event. I'm using cellclick but it acts strange, because the first time I check an unchecked checkbox getChecked() is empty, but if I then uncheck it, getChecked() has an item.

Any ideas?

xjscrafter
30 Oct 2014, 7:38 AM
Any insight into this?

xjscrafter
30 Oct 2014, 12:34 PM
Anyone? It just doesn't work as per the docs.

xjscrafter
31 Oct 2014, 8:24 AM
Any help?

carol.ext
12 Nov 2014, 2:53 PM
Looks like this example http://docs.sencha.com/extjs/4.2.3/extjs-build/examples/build/KitchenSink/ext-theme-neptune/#check-tree uses records = this.getView().getChecked()