EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: WizPS on September 22, 2020, 10:33:36 AM



Title: Remote search for combotree
Post by: WizPS on September 22, 2020, 10:33:36 AM
I’m looking for a way to search a combotree remotely. Is there a way to enable remote mode with q property sent to the server for combotree, just like in the combogrid?


Title: Re: Remote search for combotree
Post by: jarry on September 25, 2020, 08:58:26 PM
Please override the 'query' function of the 'keyHandler' on the combotree component.
Code:
$('#ct').combotree({
editable: true,
keyHandler: $.extend({},$.fn.combotree.defaults.keyHandler, {
query: function(q){
//retrieve data from server and load to the tree
//$('#ct').combotree('loadData',data)
}
})
})


Title: Re: Remote search for combotree
Post by: WizPS on September 27, 2020, 04:52:34 AM
Wonderful, thank's a lot!