Generally if we right click on any cell in the spread sheet. We get options of Cut, Copy, Paste , Insert, delete & ClearContent.
Do we have an option to customize the right click. and show only specific option more specific to our requirements.
Thanks
S.
Hello Sherry, XamSpreadsheet allows you to modify its default context menu according to the different SpreadsheetContextMenuAreas. There is a ContextMenuProvider property on the control. It is a derived ResourceProviderWithOverrides where you define a xamContextMenu instance for each area. So if you wanted to override the menu for a particular area then you would have to create a new SpreadsheetContextMenuProvider, set its ResourceOverrides to a ResourceDictionary and define a xamContextMenu with whatever xamMenuItems you wanted and give it a string key that matches the name of one of the enum members of the SpreadsheetContextMenuArea for which that context menu should be used.
You can have a look at this topic how you can do it: http://help.infragistics.com/Help/Doc/WPF/2015.1/CLR4.0/html/xamSpreadsheet_Work_Context_Menu.html
I also added a sample which you can review with custom context menu.
Thanks, Teodor Software Developer Infragistics
www.infragistics.com/support
Thank you very much for your sample.
Hello, I am just checking if there is anything else I can do for you.
Thanks,TeodorSoftware DeveloperInfragisticswww.infragistics.com/support
Hi Sherry,You can specify an own context menu on a whole SpreadsheetContextMenuArea: Cell/Column/FormulaBarEditor/InPlaceEditor/Row/SelectAllButton/Tab. In your case you should modify the context menu for the Column SpreadsheetContextMenuArea by setting the string key to match the name of the enum member.
However this will modify the context menu for all columns, so you can't set it only on a particular one.
Thanks,TeodorSoftware DeveloperInfragistics
I have not still gone through your shared code. But do wanted to check with you, whether we have any option to have custom context menu only on a particular columns .. not for all the menu cell.
Thank you for your feedback.
Sincerely, Teodor Software Developer Infragistics