Context Menu in Grid

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

4 Replies

JL Jose L. Garcia August 24, 2010 09:58 AM UTC

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


JJ Jeraldes J Syncfusion Team August 31, 2010 12:16 PM UTC

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


DH Dhanasekaran April 7, 2011 05:53 AM UTC

Hi,

Which namespace has to be added for ContextMenuAdv.?

i want to add context menu to the Treeview.


Thank you....



SK Sakthi Kumar A Syncfusion Team April 18, 2011 01:33 PM UTC

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

Loader.
Up arrow icon