Selection lost when used in RadDocking

2 posts, 0 answers
  1. Norbert
    Norbert avatar
    2 posts
    Member since:
    Jul 2012

    Posted 12 Aug 2013 Link to this post

    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.
  2. Yoan
    Admin
    Yoan avatar
    1180 posts

    Posted 13 Aug 2013 Link to this post

    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 >>
Back to Top