I have a drop down tree in an asp.net web form with checkboxes.
I don't want to display child in the hierarchy if they are the same as the parent
What is the best approach to this?
3 Answers, 1 is accepted
answered on 28 Aug 2019, 08:32 AM
Can you elaborate a bit on the exact scenario that you want to achieve? It will be really helpful if you prepare and send us a small sample demonstrating the behavior that you want to avoid, so we can suggest you further on how to do it (if possible).
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers.Learn More.
RadDropDownTree does not have a built in logic to determine whether the child items values equals the ones of their parent, the control is visualizing the hierarchical data passed to it. Details on this matter can be read and tested here:
As a possible option, you can compare manually the values of the child and parent items and hide the child item if they match. If you decide to go in this direction, you can do this check in the NodeDataBound event of the underlying TreeView of the control: