<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();
}
When I set the RadDropDownTree Enbaled as False, the Clear button still working and clear the Selected value.
Validation is not working as expected in Dropdowntree. In the demo page http://demos.telerik.com/aspnet-ajax/dropdowntree/examples/validation/defaultcs.aspx, if any one node is checked, the validation message "You need to select a type or a category before submitting the page" is displayed. If multiple checkboxes are checked, the message is not displayed. I do not want the validation message displayed when check box is checked.
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>
Reproduction: https://www.screencast.com/t/Y6HRTmGngkJ
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.
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