The Kendo UI TreeView does not support the functionality that you are looking for out of the box. So you will need to implement some custom logic that will distinct the elements, before passing them to the TreeView.
If you think that such feature should be added to Kendo UI, please check our feedback
section and cast your vote in there.
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI