Hello,
I'm unsure whether this is an actual bug, but I can't seem to clear the selected text in the RadDropDownTree when i use UncheckAllNodes or UnselectAllNodes from the server side.
I try to to set SelectedText and SelectedValue on the RadDropDownTree control to string.Empty but neither works.
The nodes are unchecked though, but the text showing the previous selection is still visible after i reload the page.
What should I do to also set the text to represent the selection done by UncheckAllNodes?
Kind regards,
Anders
<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();
}
Two requests. 1. When filtering allow tree children to be unhidden if the parent matches the pattern. Maybe add filter by level (parent, child, both). 2. Add highlight capability to show all matching node filter patterns.
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("") } }) } }
Reproduction: https://www.screencast.com/t/Y6HRTmGngkJ
when there are a lot of items checked, the RadDropDownTree displays the names of the checked items and an ellipsis, Unlike the RadComboBox which displays "X items checked" or "All items checked" if the list of checked items is too long. Please add an option for behaving like the combobox UX "[N | All] Items checked". Users do not understand this is a different control and they think it's a combo but unlike the RadComboBox they are getting a different type of behavior when selecting multiple items
When using a RadDropDownTree with a fairly large number of items, a user may select quite a few of the items. The current behaviour when the drop down is closed is that the names of only the first few selected items are shown, with no immediate visual feedback that more items are also selected (other than the tooltip). This can be misleading for users. I would like the ability to customise the message shown in the entry area, based on how many items are actually selected, e.g. "10 selected items, click here to review".
In order to workaround this bug, you can handle the OnClientNodeClicking client-side event of the embeddedTree and cancel the propagation of the event if the node that is about to be selected is disabled: protected void Page_Load(object sender, EventArgs e) { Reporting.EmbeddedTree.OnClientNodeClicking = "OnClientNodeClicking"; } <script type="text/javascript"> function OnClientNodeClicking(sender, args) { var nodeToSelect = args.get_node(); if (!nodeToSelect.get_enabled()) args.set_cancel(true); } </script>
Hello, Our company’s project needs the following functionality: after dropdown in RadDropDownTree is closed, an event will fire - only ONCE – with all checked nodes. Currently, NodeCheck event fires immediately for each node checked. And, onEntryAdded event occurs after the dropdown is closed, but it is fired for each node checked. Our project involves a lot of data. Therefore, many nodes can be checked by the user. It is unpractical that the event will be fired for each node checked, as this will harm our project’s functionality and performance. Thanks, Daniel. .Net Programmer at ISR Corp.
All admin fields should have built in label controls. Several such as RadTextBox do have built in labels and it is not that helpful when some other controls don't have the label functionality. Makes for a messy page. Please add in for this and other control types.
Hi Please add rtl support to RadDropDownTree. Thanks