不是普通的下拉树,是带复选框的
外国人开发的一个扩展组件叫做lvcombo
使用示例
[code="js"] {
xtype : 'lovcombo',
name : 'roles',
fieldLabel : 'Roles',
store : lvComboStore,
valueField : 'name',
displayField : 'name',
mode : 'local',
editable : true,
triggerAction : 'all'
} [/code]
这是一个extjs下拉树的实例
[url]http://www.iteye.com/topic/164424[/url]
你要实现的多选下拉树,只需要加上一个属性checked:true
[quote]checked : Boolean
True to render a checked checkbox for this node, false to render an unchecked checkbox (defaults to undefined with no...
True to render a checked checkbox for this node, false to render an unchecked checkbox (defaults to undefined with no checkbox rendered)
[/quote]