Add item to bindinglist of radtreeview

1 Answer 35 Views
Treeview
Flor
Top achievements
Rank 1
Flor asked on 09 Sep 2021, 10:22 AM
I have a radtreeview that is filled with a bindinglist from a database.. When I try to add an item to the bindinglist I get a System.OverflowException with the message "Radtreenode can contains 32767 level of items". I can't really figure out what is going wrong.

I don't know if it matters but I am still using the 2012 version because it's a legacy project and we are still upgrading.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 09 Sep 2021, 11:17 AM

Hello, Flor,

According to the provided information, it wouldn't be easy to get complete understanding of the setup you have and the exact data that is loaded in RadTreeView. Hence, it wouldn't be easy to determine what causes this undesired behavior on your end. Please make sure that you have unique IDs for the nodes. Thus, it will be possible to build the hierarchical structure considering the parent and child ID.

Since you are using quite an old version of the Telerik UI for WinForms suite, I would highly encourage you to upgrade in order to benefit all the introduced improvements during the almost 10 years versions gap.

You can have a look at the Data Binding section regarding RadTreeView in our online documentation and choose the appropriate approach for binding considering the structure of data you have:

https://docs.telerik.com/devtools/winforms/controls/treeview/data-binding/overview 

I hope this information helps. 

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Treeview
Asked by
Flor
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or