This question is locked. New answers and comments are not allowed.
Hello,
I have a problem with the positioning of the current element in the visible part of the grid when reloading a page.
Grid definition :
<Grid:RadDataGrid ItemsSource="{Binding Diffuseurs}" SelectedItem="{Binding SelectedDiffuseur,Mode=TwoWay}" IsSynchronizedWithCurrentItem="True">I displayed the first time a page associated with a persistent DataContext and I select an item in the grid :
-> Everything is correct ( selectedItem , currentItem ) and the binding property in the ViewModel.
I display another page then come back to my previous page by Frame.Navigate method(typeof(MyPage)) :
-> The page is reloaded and the SelectedItem property of the grid is updated from my DataContext but against the property CurrentItem remains null and my current item is not returned in the visible part of the grid.
When I try to use the ScrollItemIntoView method in an event of the grid (Loaded, DataBindingComplete, SelectionChanged ) it doesn't work, CurrentItem remains null.
Thank you in advance for your help.
Regards
Patrick