EasyUI Forum
September 15, 2025, 03:24:47 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Combotree - turn checkboxes on with config?  (Read 8673 times)
doev
Newbie
*
Posts: 22


View Profile
« on: December 18, 2013, 01:14:52 AM »

Hi,

can I turn the checkboxes on in the combotree by only using the config?
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 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">
Logged
doev
Newbie
*
Posts: 22


View Profile
« Reply #2 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

Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!