In order to achieve the wanted behavior, you could implement a custom FieldListContextMenuBehavior, override the CreateContextMenu method to include the logic of finding and removing the menu item, and then set the new behavior to the RadPivotFieldList control. The following code snippet shows an implementation of the mentioned method, which should find and remove the Number Format item, as well as the separator on top of it:
publicclassMyCustomContextMenuBehavior : FieldListContextMenuBehavior
{
protectedoverride RadContextMenu CreateContextMenu(object dataContext)
{
var contextMenu = base.CreateContextMenu(dataContext);
if (dataContext is Telerik.Pivot.Core.PropertyAggregateDescription)
{
var items = contextMenu.Items.Cast<RadMenuItem>().ToList();
var itemToRemove = contextMenu.Items.Cast<RadMenuItem>().FirstOrDefault(i => (i as RadMenuItem).Header != null && (i as RadMenuItem).Header.Equals("Number Format")); ;
if (itemToRemove != null)
{
//This is the separator which is over the Number Format item
contextMenu.Items.Remove(items[9]);
contextMenu.Items.Remove(itemToRemove);
}
}
return contextMenu;
}
}
That said, I have implemented this approach in a sample project for you to test.