EasyUI Forum
December 20, 2025, 03:46:58 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
  Home Help Search Login Register  
  Show Posts
Pages: [1]
1  General Category / Bug Report / Re: combotree can not select the checked item where multiple is false on: May 24, 2016, 07:22:39 PM
The checked property is designed for multiple selections. When you set the multiple to false, the checked property is ignored. If you want to initialize the combotree value, please set the value property for the combotree component.

but which item need to be selected is returned with the json data.

my solution is find the selected item in the onLoadSuccess event
then setValue.
2  General Category / Bug Report / combotree can not select the checked item where multiple is false on: May 24, 2016, 06:03:20 AM
Code:
<input class="easyui-combotree" data-options="url:'tree_data1.json',method:'get',required:true, multiple:false" style="width:200px;">

Code:
[{
"id":1,
"text":"My Documents",
"state":"open",
"children":[{
"id":11,
"text":"Photos",
"state":"open",
"children":[{
"id":111,
"text":"Friend",
"checked":true
},{
"id":112,
"text":"Wife"
},{
"id":113,
"text":"Company"
}]
}]
}]
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!