EasyUI Forum

General Category => Bug Report => Topic started by: mzeddd on April 16, 2015, 06:54:04 AM



Title: Group ComboBox problem
Post by: mzeddd on April 16, 2015, 06:54:04 AM
Hi,

I noticed one thing in combobox (example from demo: demo/combobox/group.html)

If I edit 'combobox_data2.json' file this way (see below) I get two groups with the same name

Code:
[{
"value":"f20",
"text":"Firefox 2.0 or higher",
"group":"Firefox"
},{
"value":"f15",
"text":"Firefox 1.5.x",
"group":"Firefox"
},{
"value":"ie7",
"text":"Microsoft Internet Explorer 7.0 or higher",
"group":"Microsoft Internet Explorer"
},{
"value":"ie6",
"text":"Microsoft Internet Explorer 6.x",
"group":"Microsoft Internet Explorer"
},{
"value":"f10",
"text":"Firefox 1.0.x",
"group":"Firefox"
},{
"value":"ie5",
"text":"Microsoft Internet Explorer 5.x",
"group":"Microsoft Internet Explorer"
}

It does not look good. (even with pure HTML)


Title: Re: Group ComboBox problem
Post by: jarry on April 16, 2015, 03:24:47 PM
The items must be moved together regarding the group values. If not, you can use the loadFilter function to change its order before loading to the combobox component.