PDA

View Full Version : Return the modified checkbox for the treepanel



maylwy
3 Feb 2014, 6:39 PM
Hi,

I have generated some checkbox on the treepanel by adding the below JSON string to the treestore:


[ { text: 'SomeText',
expanded: true,
iconCls: 'hide',
checked: false,
isFirst:true,
....
}]

I would like to return the checkbox which is modified. Is there any functions for the treepanel are similar with the isDirty( ) for the checkbox? Or I could only achieve this by tracking the user's interaction via itemclick( )?

Thanks!

slemmon
6 Feb 2014, 1:04 PM
If it were me I think I would set up a treegrid:
http://docs.sencha.com/extjs/4.2.1/extjs-build/examples/build/KitchenSink/ext-theme-neptune/#tree-grid

and use a checkColumn:
http://docs.sencha.com/extjs/4.2.2/#!/api/Ext.grid.column.Check