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

Refresh PivotGrid when ItemSource Changes

1 Answer 257 Views
PivotGrid
This is a migrated thread and some comments may be shown as answers.
Darren
Top achievements
Rank 1
Darren asked on 09 Nov 2017, 11:36 AM

Is there a way to refresh the Data when the Grid Changes without setting the itemsource to null and then setting it to the list?

I find doing this resets row and column collapsing.

Or can I bind the PivotGrid directly to an ObservableCollection without using the LocalDataSourceProvider?

 

Thanks in Advance

 

 

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 14 Nov 2017, 07:56 AM
Hello Darren,

Can you take a look at the DataProvider Refresh section on the Populating with Data documentation of RadPivotGrid? Does that work for you?

Also, the pivot grid control works with any collection that implements the IEnumerable interfrace so you can use ObservableCollection. See the First Look demo of RadPivotGrid in the demos app. Note that this example doesn't list all required files in the application so to get them and what happens you will need to get the demos app source solution.

Regards,
Martin Ivanov
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
PivotGrid
Asked by
Darren
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or