Hi all,
in my current project i have some loosely coupled modules. Let´s say in module A we have a RadGridView with a region to extend the context menu.
A other module (let`s call it B) extends regio
How can i get the current slected row when
in my current project i have some loosely coupled modules. Let´s say in module A we have a RadGridView with a region to extend the context menu.
<telerik:RadGridView x:Name="radGridView" IsReadOnly="True" AutoGenerateColumns="False" ShowGroupPanel="false" RowIndicatorVisibility="Collapsed" ItemsSource="{Binding States}" SelectedItem="{Binding SelectedItem, Mode=TwoWay}"> <!-- CONTEXTMENU --> <telerik:RadContextMenu.ContextMenu> <telerik:RadContextMenu x:Name="MachineStateContextMenu" cal:RegionManager.RegionName="MachineStateContextMenu" Opened="RadContextMenu_Opened"> <telerik:RadMenuItem Header="Export" Click="RadMenuItem_Click"> <telerik:RadMenuItem.Icon> <Image Source="/Joma.Workbench.Core;component/Images/page_excel.png" /> </telerik:RadMenuItem.Icon> </telerik:RadMenuItem> <telerik:RadMenuItem IsSeparator="True"/> </telerik:RadContextMenu> </telerik:RadContextMenu.ContextMenu></telerik:RadGridView>A other module (let`s call it B) extends regio
n `MachineStateContextMenu` with one or more Items bound with commands.
<StackPanel>
<telerik:RadMenuItem Header="Machinehistory" Command="{Binding MachineHistoryCommand}" />
</StackPanel>
How can i get the current slected row when
`MachineHistoryCommand` is executed? My only idea at the moment is to fire an event via the eventaggregator to inform other modules about a changed selected row.
Are there any approaches that are more reasonable?
Greetings
Ralf