PDA

View Full Version : Trees with Multiple columns as check-box



zorrito80
28 Feb 2012, 6:14 PM
Hi to all,

I will like to know if it is posible to have a Tree with Multipe columns as check-boxes ?

I was checking this example for theTrees with Multiple columns, but I'm really don't know how the set the colomuns to xtype:'cechbox' and capture the event when they are selected.

http://docs.sencha.com/ext-js/4-0/#!/guide/tree

I will appreciate if someone can give a clue how to make this posible, Tnks ~o)

mitchellsimoens
28 Feb 2012, 7:04 PM
The checkboxes in a tree are built in and will only display next to the icon. The checkcolumn that you can use in a grid does not work in a tree but you can use a templatecolumn and show images of checkboxes (that's what the checkcolumn does)

zorrito80
29 Feb 2012, 4:28 AM
This template column can be functional, or it will be just images from the componentes ?

mitchellsimoens
29 Feb 2012, 5:45 AM
The check column that you would build based off of the template column would show just an image of the checkbox and you would have to handle the checking of the check box. This is how the checkbox is in the tree panel and in the grid, just images, not actual checkboxes.