Hello,
I am using the control to replace a old control we made ourself and that have the same behaviour as this DropDownTree. I have suscceeded yto d pretty much everything I wanted. There is only one thing I want to do, I want all the node to collapse when the filter is empty.
I have tried several solutions, my closest one is this one, but is not working proprely. Sometimes it works, sometimes it does not :
I have attached to the DropDownTree OnClientLoad client side event this function :
I've tryed that too : $(".rddtFilterInput").on('input',function () {...}); But no success either...
I can see that it collapse the nodes but right after they are expanding again.
I also tried to cancel the OnClientNodeExpanding event when the filter is empty but no success here either...
Do you have any solutions that realize what i'm trying to do ?
Thanks
I am using the control to replace a old control we made ourself and that have the same behaviour as this DropDownTree. I have suscceeded yto d pretty much everything I wanted. There is only one thing I want to do, I want all the node to collapse when the filter is empty.
I have tried several solutions, my closest one is this one, but is not working proprely. Sometimes it works, sometimes it does not :
I have attached to the DropDownTree OnClientLoad client side event this function :
function
loadTreeView(sender, args) {
var
dropdowntree1 = $find(
"<%=ddtList.ClientID%>"
);
var
tree = dropdowntree1.get_embeddedTree();
$(
".rddtFilterInput"
).keyup(
function
() {
if
($(
".rddtFilterInput"
).val() ==
''
)
treeCollapseAllNodes(tree);
}
I've tryed that too : $(".rddtFilterInput").on('input',function () {...}); But no success either...
I can see that it collapse the nodes but right after they are expanding again.
I also tried to cancel the OnClientNodeExpanding event when the filter is empty but no success here either...
Do you have any solutions that realize what i'm trying to do ?
Thanks