This is a migrated thread and some comments may be shown as answers.

Selection lost when used in RadDocking

1 Answer 45 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Norbert
Top achievements
Rank 1
Norbert asked on 12 Aug 2013, 11:03 AM
I'm using a RadGridView within a RadDocking RadPane. in my application the MVVM pattern is used. So the ItemSource and the SelectedItem Properties data bound to my view model. Everything is working as expected until the RadPane is undocked from the RadDocking and becomes a floating window. When this happens any selection of a row is lost and the bound property becomes null.
Why is this happening? I've tried using the SelectionChanging or SelectionChanged events to get notified when the selection is removed but neither of those seem to be triggered. It is very important for my application to be informed about any selection changes within the grid view since it stores user configurations which are switched once the user selects another one.

Any help on this would be appreciated.
Thanks and regards.

1 Answer, 1 is accepted

Sort by
0
Yoan
Telerik team
answered on 13 Aug 2013, 12:56 PM
Hello Norbert,

Actually, this is the expected behavior. When the Pane is dragged the GridView gets unloaded and then loaded again. I would suggest you to check this forum post. I have tested the mentioned approach and everything works as expected.

I hope this helps.


Regards,
Yoan
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
GridView
Asked by
Norbert
Top achievements
Rank 1
Answers by
Yoan
Telerik team
Share this question
or