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

PivotGrid Binding

1 Answer 39 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:58 AM
Hi,

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

Thank you

1 Answer, 1 is accepted

Sort by
0
Rosen Vladimirov
Telerik team
answered on 02 Oct 2013, 08:00 AM
Hello amine,

I've already answered to your question in your other forum thread here. In the future please keep the discussion in a single thread for better tracking and understanding. Anyway here is my answer from your other thread:

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.

You can find a runnable project in my other post. 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 >>
Tags
PivotGrid
Asked by
amine
Top achievements
Rank 1
Answers by
Rosen Vladimirov
Telerik team
Share this question
or