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

Reset/Clear pivotgrid

1 Answer 52 Views
PivotGrid and PivotFieldList
This is a migrated thread and some comments may be shown as answers.
Rohit
Top achievements
Rank 1
Rohit asked on 16 Jan 2018, 02:02 PM

Hi

I want to clear the pivotgrid contents.

I am using LocalDataSourceProvider and providing datatable as itemsource.

If I set the LocalDataSourceProvider object to null, I get NullReference exception.

I have emptied the rows and columns, but the grid does not refresh.

1 Answer, 1 is accepted

Sort by
0
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 16 Jan 2018, 02:35 PM
Hello, Rohit,   

Thank you for writing.  

When I set the LocalDataSourceProvider.ItemsSource property to null, no error occurs on my end with the latest version. It is necessary to clear the available RowGroupDescriptions, ColumnGroupDescriptions, and AggregateDescriptions. I have prepared a sample project demonstrating how to clear RadPivotGrid

I hope this information helps. Should you have further questions I would be glad to help.
 
Regards,
Dess
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
PivotGrid and PivotFieldList
Asked by
Rohit
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or