Unplanned
Last Updated: 25 May 2020 14:45 by ADMIN

 

<telerik:RadDropDownTree RenderMode="Lightweight" ID="RadDropDownTree3" runat="server" Width="300px" DefaultMessage="Please select"
            DataFieldID="EmployeeID" DataFieldParentID="ReportsTo" DataTextField="LastName"
            DataSourceID="SqlDataSource1">
        </telerik:RadDropDownTree>
      
        <asp:SqlDataSource runat="server" OnSelecting="SqlDataSource1_Selecting" ID="SqlDataSource1" ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
            SelectCommand="SELECT * From Employees"></asp:SqlDataSource>
protected void SqlDataSource1_Selecting(object sender, SqlDataSourceSelectingEventArgs e)
{
    Label1.Text += "<br /> Sql request at:" + DateTime.Now.ToLongTimeString();
}

 

Unplanned
Last Updated: 30 Oct 2017 13:45 by ADMIN
ADMIN
Created by: Peter Milchev
Comments: 0
Category: DropDownTree
Type: Bug Report
1
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("")
            }
        })
    }
}
Unplanned
Last Updated: 15 May 2017 09:06 by ADMIN
Unplanned
Last Updated: 10 Nov 2016 16:09 by ADMIN
Unplanned
Last Updated: 19 Sep 2017 14:59 by ADMIN
Reproduction: https://www.screencast.com/t/Y6HRTmGngkJ