Hi. I have another trouble with grid update (SelectedItem)
- MVVM (library MVVM light)
- RIA (DomainDataSource)
- RadGridView (2010.2 812 (Aug 12, 2010))
Please, look at the picture named map_of_actions.png (see attachments).
Main ViewModel (Which name is HomeViewModel) has 3 ViewModel. They are all linked.
1. ACTION 1: When I click on Master1 treeview (DepartmentTreeViewModel) the Detail1 (GridView) is reloaded details records (at map it ACTION 2).
2.ACTION 3: When I click on Master2 gridview (StaffViewModel) the Detail2 (GridView) is reloaded details records for master2 (at map see ACTION 4).
3. And now the issue: how I can make GridView (Master2) update your selectedItem for Deteil2. When I click Master1 DETAIL2 must update too! But Master2 SelectedItem not updated.
I was try many events on gridview, but they are not fired when DomainDataSource event LoadedData completed And also I was try the DomainDataSource event LoadedData, but I can't find solution HOW can gridview make your SelectedItem updated (for example, just set first loaded item selected).
Same piece of code
grid and domaindatasource
class StaffViewModel command SelectionChangedCommand
And the last code of class StaffViewModel property SelectedId:
P.S.: PersonViewModel class has the same properties and methods.
Please help me. GridView with Persons entityties must be updated too when I change selection on TreeView (MASTER1)!!!