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

PivotGrid Binding

2 Answers 45 Views
PivotGrid
This is a migrated thread and some comments may be shown as answers.
amine
Top achievements
Rank 1
amine asked on 30 Sep 2013, 09:56 AM
Hi,

How can I bind RadPivotGrid to a simple List or ObservableCollection using mvvm? Is this possible? is there any example.

Thank you

2 Answers, 1 is accepted

Sort by
0
Rosen Vladimirov
Telerik team
answered on 02 Oct 2013, 07:56 AM
Hi amine,

There are several ways to achieve the desired result. For example if you use LocalDataSourceProvider you can bind its ItemsSource directly in XAML. A better approach is to create an instance of the DataProvider directly in the ViewModel and bind RadPivotGrid's DataProvider property to this instance.

I'm sending you a simple project demonstrating the second approach. Hopefully this helps.

Regards,
Rosen Vladimirov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
amine
Top achievements
Rank 1
answered on 08 Oct 2013, 01:52 PM
Great, Thank you
Tags
PivotGrid
Asked by
amine
Top achievements
Rank 1
Answers by
Rosen Vladimirov
Telerik team
amine
Top achievements
Rank 1
Share this question
or