How do I select a record on right click?
Hello,
I have been looking into your issue and can suggest you create a Style for the DataRecordPresenter (the DataRecord’s visual element) with an EvenSetter like for the MouseRightButtonDown event like this one:
<Style TargetType="{x:Type igDP:DataRecordPresenter}">
<EventSetter Event="MouseRightButtonDown" Handler="DataRecordPresenter_MouseRightButtonDown" />
</Style>
and use this code snippets in its event handler:
void DataRecordPresenter_MouseRightButtonDown(object sender, MouseButtonEventArgs e)
{
(sender as DataRecordPresenter).Record.IsSelected = true;
}
Please let me know if you require any further assistance or clarification on the matter.
Sincerely,
Petar Monov
Developer Support Engineer
Infragistics Bulgaria
www.infragistics.com/support
I am also looking for same thing but how can it be done without code behind in MVVM pattern?