Hi,
Could you please advise how to reference the row(s) of the SelectedCells?
For example, would like to implement a "copy down/fill handler" (as in Excel) using a ContextMenu on the gridview. For each SelectedCell, we would like to copy the cell contents of the top selected row down to each row of the SelectedCells using MVVM. Please find a sample of the XAML attached.
<telerik:RadGridView Name="dtgMyData"
ItemsSource="{Binding Path=MyData}"
AutoGenerateColumns="False"
RowIndicatorVisibility="Visible"
HorizontalAlignment="Stretch"
SelectionMode="Extended"
SelectionUnit="Mixed">
...
<telerik:RadMenuItem Header="Copy Values Down" Command="{Binding DataContext.CopyValuesDownCommand, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type telerik:RadContextMenu}}}" CommandParameter="{Binding Path=UIElement, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=telerik:RadContextMenu}}" />
</telerik:RadContextMenu.Items>
</telerik:RadContextMenu>
</telerik:RadContextMenu.ContextMenu>
...columns...
</telerik:RadGridView>
Kindly advise.
Thanks