RadTreeView DataSource Changed ,but the ui has not changed .

1 Answer 59 Views
Treeview
sun
Top achievements
Rank 1
Iron
sun asked on 15 Aug 2023, 06:12 AM

how to refresh the radtreeview ui while the datasource of the radtreeview changed .for example add or update one record

1 Answer, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 15 Aug 2023, 06:40 AM

Hello, Sun,

Please have a look at the following help article which demonstrates how to notify the RadTreeView control for any changes and keep the state:

https://docs.telerik.com/devtools/winforms/controls/treeview/how-to/keep-radtreeview-states-on-reset 

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

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.

sun
Top achievements
Rank 1
Iron
commented on 15 Aug 2023, 06:52 AM

i don't want to implement INotifyPropertyChanged interface, is there another approach ?

someone tell me to use bindingsource object ,when the datamodel changed ,just call the resetbinding method ,but it still couldn't work here

Dess | Tech Support Engineer, Principal
Telerik team
commented on 16 Aug 2023, 10:17 AM

Indeed, it is also a suitable approach. The following tutorial demonstrates how to notify the control that your data source has changed by calling the ResetBindings method.

https://learn.microsoft.com/en-us/dotnet/desktop/winforms/controls/reflect-data-source-updates-in-a-wf-control-with-the-bindingsource?view=netframeworkdesktop-4.8 

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