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. Image for the cookie policy date

Determining a right-click on a Card View

So the situation is I have a card view. While one of the cards is in edit mode, I want to right click another card (brings up a context menu - I have this much working). The selected item doesn't change and the card in edit mode remains in edit mode.
How can I get what item corresponds to the card I right-clicked on?
Thanks
Brent Hoskisson

3 Replies

VR Vijayalakshmi Roopkumar Syncfusion Team December 11, 2015 10:27 AM UTC

Hi Brent,

Thank you for contacting Syncfusion Support

We have prepared a sample that tries to meet your requirement. In our sample we have fetched the CardViewItem from the VisualTree in the PreviewMouseDown event and selected the CardViewItem which is right clicked. Please download the sample from the following link:

Sample:CardView_121410

Regards,
Vijayalakshmi V.R.


BH Brent Hoskisson December 11, 2015 03:56 PM UTC

The PreviewMouseDown event did the trick and I got the object from cardviewitem.Header

Thanks,
Brent


VR Vijayalakshmi Roopkumar Syncfusion Team December 12, 2015 12:12 PM UTC

Hi Brent,

Thanks for the update.

Please let us know if you need further assistance on this.

Regards,
Vijayalakshmi V.R.

Loader.
Live Chat Icon For mobile
Up arrow icon