Completed
Last Updated: 22 Aug 2016 14:23 by ADMIN
ADMIN
Dess | Tech Support Engineer, Principal
Created on: 03 Aug 2016 09:58
Category: TreeView
Type: Bug Report
0
FIX. RadTreeView - DataSource is not updated correctly when using simple data-binding
Please refer to the attached sample project and follow the steps: 

If you execute my code sample and try this sequence, you will see my problem:
1- start the application
2- select "test1" on the grid => you see "fonction XX of test1" in the treeview (that's correct)
3- select "test2" on the grid => you see "fonction XX of test2" in the treeview (that's correct)
4- expand all nodes in the treeview
5- uncheck "fonction 31 of test2" in the treeview
6- select "test1" on the grid => you have the error message. On the grid, we have "test1" selected and on the treeview we have "test2".
Note that the problem appears only when checking a node in the treeview on a second level. If you follow this procedure, you will have no problem :
1- restart the application
2- select "test1" on the grid => you see "fonction XX of test1" in the treeview (that's correct)
3- select "test2" on the grid => you see "fonction XX of test2" in the treeview (that's correct)
4- uncheck "fonction 30 of test2" in the treeview
5- select "test1" on the grid => you will have no error. On the grid, we have "test1" selected and on the treeview we have "test1".
6- select "test2" on the grid => you will have no error. On the grid, we have "test2" selected and on the treeview we have "test2" with "fonction 30 of test2" unchecked.

Workaround: in order to synchronize the current row in RadGridView is to change the RadTreeView.DataSource in the RadGridView.CurrentRowChanged event.
0 comments