Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
695
select a record on right click
posted

How do I select a record on right click? 

Parents
  • 27093
    Verified Answer
    posted

    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

     

Reply Children