We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to call a relay command method when a cell is double clicked.

Thread ID:





119255 May 29,2015 09:37 AM UTC Jun 1,2015 12:38 PM UTC WPF 1
Tags: GridDataControl
Asked On May 29, 2015 09:37 AM UTC

I have a Syncfusion griddata control and I would like to open up a popup when a cell is clicked. I am not supposed to use eventhandler and I nedd to call a relay command method when the cell is clicked. That method should open up the popup. This is very much urgent. so please help

Akila Rajaram [Syncfusion]
Replied On June 1, 2015 12:38 PM UTC

Hi Jen ,

Thank you for using Syncfusion Products .

We analyzed your query . You can achieve your requirement by using interaction with EventTrigger in WPF .We have prepared a sample for the same and you can download the sample from the following location ,

Sample : http://www.syncfusion.com/downloads/support/forum/119255/ze/GridDataControlsample1488617292

The instance of relay command is passed to Command property of EventTrigger as shown in  the following code example:



    <i:EventTrigger EventName="MouseDoubleClick">

        <i:InvokeCommandAction Command="{Binding Path=DoubleClickCommand, Mode=TwoWay}" CommandParameter="{Binding ElementName=grid}" />


    <i:EventTrigger EventName="MouseMove">

        <i:InvokeCommandAction Command="{Binding Path=MouseMoveCommand, Mode=TwoWay}" CommandParameter="{Binding ElementName=grid}" />



Please let us know if this solution helps you .

Akila R.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon