-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
clearSelection is not working on single Tree #35
Comments
krutika20
changed the title
ClearSelection is not working on single Treeq
ClearSelection is not working on single Tree
May 22, 2020
krutika20
changed the title
ClearSelection is not working on single Tree
clearSelection is not working on single Tree
May 22, 2020
@krutika20 Have you found any solution for this? |
i wrote a code. ComboTree.prototype.clearSelection = function () {
for (i = 0; i < this._selectedItems.length; i++) {
let itemElem = $(
'#' + this.comboTreeId + 'Li' + this._selectedItems[i].id
);
$(itemElem).find('input').prop('checked', false);
}
this._selectedItems = [];
this._selectedItem = {}; // !!! this line!!!
this.refreshInputVal();
}; |
this weekend, I make PR... |
I've made PR please check. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have set single tree using below code.
gunBtreeinstance = jq('#gunBrokerTree').comboTree({
source : data.categoryData,
isMultiple: false
});
and trying to reset filter of this comboTree using clearSelection but not wokring.
gunBtreeinstance.clearSelection();
setSelection is also not working for resting filter like gunBtreeinstance.setSelection(['0']) or gunBtreeinstance.setSelection('0')
Please help for single tree.
Thanks
The text was updated successfully, but these errors were encountered: