EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: amir-t on July 21, 2013, 05:12:28 AM



Title: ComboTree And ComboBox combination
Post by: amir-t on July 21, 2013, 05:12:28 AM
Hi,
Is it possible to implement a special combination of ComboTree And ComboBox in the following way:
When the user starts typing in the combo's text box, then it is populated with matched choices (flat list) with the values taken from a flat list items of an hierarchical tree data,
as displayed in the picture(the matched values will be taken from the tree data, by some conversion to flat list view) :
(http://i44.tinypic.com/6dualj.png)

But when the user is pressing the drop down arrow button, the populated list will be the entire original tree data (displayed as tree view ):
(http://i44.tinypic.com/10rir8y.png)

Also, when the user will choose some value, of his autoComplete choices when typing some prefix,
the selected choice will be a selected node in the treeView, since the populated choices are a flat list of all the nodes' text, taken from the original tree view json data.

Regards.