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.
Unfortunately, activation email could not send to your email. Please try again.

Context Menu in Grid

Thread ID:

Created:

Updated:

Platform:

Replies:

96143 Aug 24,2010 05:02 AM Apr 18,2011 09:33 AM Silverlight 4
loading
Tags: GridControl
Jose L. Garcia
Asked On August 24, 2010 05:02 AM

Hello,

I'm trying to create a context menu for a DomainGridDataControl and I'm having some problems to do work it.

I want to attach a context menu with Add, Edit, Delete options and be able to work with the current record with this menu.

The steps are:

1) When the user press right click show a menu with the options.
2) When the user select an option I need to check if a record is selected in the grid.
3) Call to the code to perform the selected operation.

Do you have any example about this?
Regards
Jose

Jose L. Garcia
Replied On August 24, 2010 05:58 AM

Sorry, the step 2 may be select the record clicked with mouse right button.

Jeraldes J [Syncfusion]
Replied On August 31, 2010 08:16 AM

Hi Jose,

Thank you for your patience.

We have worked on your requirements and prepared a sample to meet the same.

You can add the syncfusion silverlight Context menu using ContextMenuAdvService to Add, Edit and Delete options as follows.

[Code Snippet] [Xaml]




















Please find the attached sample for your reference.

Sample: http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=GridDataControl-SL31158032799.zip

Let us know if you need any other details.

Regards,
Jeraldes J

Dhanasekaran
Replied On April 7, 2011 01:53 AM

Hi,

Which namespace has to be added for ContextMenuAdv.?

i want to add context menu to the Treeview.


Thank you....


Sakthi Kumar A [Syncfusion]
Replied On April 18, 2011 09:33 AM

Hi Jose,

We have created the sample for using the ContextMenuAdv in TreeViewAdv control. ContextMenuAdv is available in the following NameSpace

xmlns:sync="clr-namespace:Syncfusion.Windows.Shared;assembly=Syncfusion.Shared.Silverlight"

Please refer the sample under the following location.


Regards,
Sakthi



TreeViewSiver_c877a25f.zip

CONFIRMATION

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.

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.

;