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

CurrentItem when SelectionMode=“Multiple”

1 Answer 72 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Dongzhi
Top achievements
Rank 1
Dongzhi asked on 09 Jan 2014, 02:33 PM

Our requirement for the grid is to have checkbox column so that user be able to select multiple items using the checkbox. During that time, the CurrentItem should be the item user clicked on, which might select/unselect the checkbox, and we will load the detail info of the CurrentItem then display it in a panel outside of the grid.

Here's the definition of the grid:

<telerik:RadGridView
                IsSynchronizedWithCurrentItem="True"
                AutoGenerateColumns="False"
                ItemsSource="{Binding ItemCollection}"
                CurrentItem="{Binding CurrentItem}"
                SelectionMode="Multiple">
        <telerik:RadGridView.Columns>
            <telerik:GridViewSelectColumn />
            <telerik:GridViewDataColumn DataMemberBinding="{Binding Path=Name}"
                                        Header="Name" />
        </telerik:RadGridView.Columns>
    </telerik:RadGridView>

The behavior now is the CurrentItem will always be the first selected item, not the item currently has focus on.

Is there any way to fulfill our requirement?

I would appreciate any suggestions.

1 Answer, 1 is accepted

Sort by
0
Dongzhi
Top achievements
Rank 1
answered on 10 Jan 2014, 02:16 PM
Tags
GridView
Asked by
Dongzhi
Top achievements
Rank 1
Answers by
Dongzhi
Top achievements
Rank 1
Share this question
or