This is a migrated thread and some comments may be shown as answers.

Hide field from pivot grid but selectable in pivotfieldlist

1 Answer 35 Views
PivotGrid
This is a migrated thread and some comments may be shown as answers.
Swapna
Top achievements
Rank 1
Swapna asked on 31 Mar 2015, 10:58 AM
I am looking for option similar to 'Hide Field' available in Ajax on a field selected in pivot field list.
I  want the user to  be able to select a field in the pivotfieldlist. But then have an option to hide it from the pivot grid view.

At the moment I can hide a field using AutoGenerateField  which hides it completely from both pivotfieldlist and pivotgrid.

1 Answer, 1 is accepted

Sort by
0
Kalin
Telerik team
answered on 02 Apr 2015, 10:10 AM
Hi Swapna,

The same functionality can be achieved in PivotGrid for WPF, whenever the desired value is dragged and dropped outside of the FiledList - you can test it in this online demo. However if you need a MenuItem which does the same - you can check the following example from our XAML SDK repository, that demonstrates how to customize the ContextMenu in order to add new MenuItems:
https://github.com/telerik/xaml-sdk/tree/master/PivotGrid/CustomContextMenuBehavior

However you would need to manually implement that logic.

Hope this helps.

Regards,
Kalin
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
PivotGrid
Asked by
Swapna
Top achievements
Rank 1
Answers by
Kalin
Telerik team
Share this question
or