Won't Fix
Last Updated: 08 Jun 2022 07:28 by ADMIN
ADMIN
Peter Milchev
Created on: 30 Oct 2017 13:43
Category: DropDownTree
Type: Bug Report
1
IE clear button in DropDownTree does not reset the filter
Workaround 1;

input[type=text]::-ms-clear {
    display: none;
}

Workaround 2: 

// https://www.telerik.com/support/kb/aspnet-ajax/details/how-to-create-a-javascript-array-of-all-particular-radcontrols-on-the-page
function get_allRadDropDownTrees() {
    var allRadDropDownTrees = [];
    var allRadControls = $telerik.radControls;

    for (var i = 0; i < allRadControls.length; i++) {
        var element = allRadControls[i];

        if (Telerik.Web.UI.RadDropDownTree && element instanceof Telerik.Web.UI.RadDropDownTree) {
            Array.add(allRadDropDownTrees, element);
        }
    }
    return allRadDropDownTrees;
}


function fixClearButton(sender, args) {
    tree = sender;
    if ($telerik.isIE) {
        var dropDownTrees = get_allRadDropDownTrees();
        dropDownTrees.forEach(function (dropdowntree) {                       
            $telerik.$(dropdowntree.get_filterElement()).on('input', function (e, a) {
                if (!e.target.value) {
                    dropdowntree.filterByText("")
                }
            })
        })
    }
    Sys.Application.remove_load(fixClearButton);
}

Sys.Application.add_load(fixClearButton);



Workaround 3: 

var tree;
function OnClientLoad(sender, args) {
    tree = sender;
    if ($telerik.isIE) {
        $telerik.$(sender.get_filterElement()).on('input', function (e, a) {
            if (!e.target.value) {
                tree.filterByText("")
            }
        })
    }
}
1 comment
ADMIN
Rumen
Posted on: 08 Jun 2022 07:28
The issue occurs under IE only and since Microsoft is discontinuing Internet Explorer on June 15, 2022, we decided to not fix it. You can see more at

Internet Explorer 11 desktop application ending support for certain operating systems.

Please use the provided solutions by Peter and also encourage your users to use Google Chrome, Microsoft Edge Chromium, or Firefox instead of IE.