radgridview SelectedItems two way binding

2 posts, 0 answers
  1. Gopinath
    Gopinath avatar
    63 posts
    Member since:
    Sep 2011

    Posted 12 Dec 2012 Link to this post

    Hi,

    I am using the GridViewSelectColumn inside my grid-view. With the help of behavior i am able to get the  selected items list in MVVM pattern.But i am not able to load back the selected items to the Grid-view.

    Ex: I am having child window which contains the grid-view, The grid-view contains the GridViewSelectColumn . With the help of behavior i am able to get the  selected items list in MVVM pattern.

    I am passing that list to parent window.

    When this child-window again opens from Parent Window, i need the grid-view should contain the selected list back in that. I am passing the list(which was sent from child to parent) from parent to child . But the grid items are not in selected mode.

    Can anyone suggest the way please.

    Thanks
    Gopinath

  2. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1127 posts

    Posted 12 Dec 2012 Link to this post

    Hello,

    As SelectedItems does not have a public setter, which is a common convention for collection-type properties, you cannot just bind it with a two-way binding. Here is a blog article that illustrates a MVVM-friendly behavior to synchronize your selected items with the ViewModel.

    Regards,
    Ivan Ivanov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
Back to Top