EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: doev on December 18, 2013, 01:14:52 AM



Title: Combotree - turn checkboxes on with config?
Post by: doev on December 18, 2013, 01:14:52 AM
Hi,

can I turn the checkboxes on in the combotree by only using the config?


Title: Re: Combotree - turn checkboxes on with config?
Post by: stworthy on December 18, 2013, 07:00:32 AM
Set the 'multiple' property to true. The tree will have multiple checkbox selection feature.
Code:
	<input class="easyui-combotree" style="width:200px;" data-options="
data:data,
multiple:true,
required:true">


Title: Re: Combotree - turn checkboxes on with config?
Post by: doev on December 18, 2013, 07:22:57 AM
The problem is, that I use the datagrid-filterrow-extension and I don't know how to access the element (object?) that represent the comotree

I tryed this:

Code:

// this should give me the combotree?
var combotree = $('#dg').datagrid('getFilterComponent','ct-field');

// there is a tree() method listed under "__proto__" should it give back the tree-object?
var tree = combotree.tree();

// badly the tree is equal to combotree, and I stuck at this point