This happens when the control is loaded and bound to a datasource that contains this information, or when a new node is added with these values. I understand why this logically would cause an error, but having a check in the control, to prevent an application crashing exception would be useful.
3 Answers, 1 is accepted
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 16 Aug 2017, 09:37 AM
Hello Bruce,
Thank you for writing.
The hierarchy in RadTreeView is built considering the IDs for the records. That is why they are expected to be valid. You must not have the same ID for two nodes in order to build correct data. Otherwise, it is normal to obtain such errors indicating that the data is not valid.
As I said, I understand that it is incorrect, my issue is that there is no error, or exception thrown, what happens is an unhandled stackoverflow that will crash the application.
Again, the treeview isn't responding that the data is invalid, it goes into an infinite loop, until it blows out the stack.
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 17 Aug 2017, 07:44 AM
Hello Bruce,
Thank you for writing back.
Your feedback is greatly appreciated. However, the user is responsible for the validity of the data in RadTreeView. Hence, you should check the data before biding the tree.
If you have any additional questions, please let me know.