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

Can't display RadPivotFieldList

5 Answers 85 Views
PivotGrid
This is a migrated thread and some comments may be shown as answers.
Michel
Top achievements
Rank 1
Michel asked on 16 Nov 2012, 04:41 PM
Hi,
I can't display RadPivotFieldList associated with RadPivotGrid : the grid is OK, but there is nothing in RadPivotFieldList.

Here's the XAML part for LocalDataProvider definition:

<pivot:LocalDataSourceProvider x:Key="LocalDataProvider">
            <pivot:LocalDataSourceProvider.RowGroupDescriptions>
                <pivot:PropertyGroupDescription PropertyName="SubjectCode" />
            </pivot:LocalDataSourceProvider.RowGroupDescriptions>
            <pivot:LocalDataSourceProvider.ColumnGroupDescriptions>
                <pivot:PropertyGroupDescription PropertyName="ProductCode" />
            </pivot:LocalDataSourceProvider.ColumnGroupDescriptions>
            <pivot:LocalDataSourceProvider.AggregateDescriptions>
                <pivot:PropertyAggregateDescription PropertyName="Score" AggregateFunction="Average" />
            </pivot:LocalDataSourceProvider.AggregateDescriptions>
        </pivot:LocalDataSourceProvider>

And the XAML part for RadPivotGrid and RadPivotFieldList :

<pivot:RadPivotGrid x:Name="Pivot" Grid.Column="0" DataProvider="{StaticResource LocalDataProvider}"  />
<pivot:RadPivotFieldList x:Name="FieldList" Grid.Column="1" DataProvider="{StaticResource LocalDataProvider}"  />

And C# view constructor code (App.CurrentSeance.ListData being an ObservableCollection)

InitializeComponent();
(this.Resources["LocalDataProvider"] as LocalDataSourceProvider).ItemsSource = App.CurrentSeance.ListData;

Any idea ?
Sincerely yours,

Michel

5 Answers, 1 is accepted

Sort by
0
Rosen Vladimirov
Telerik team
answered on 19 Nov 2012, 07:13 AM
Hi Michael,

Your definitions look fine. There was a problem with our RadPivotFieldList, but we have found it and fixed it. The fixed version will be included in this week internal build which should be available for download later today or tomorrow. I would suggest you to use it instead of the official version as we have fixed several other problems in it.
If you want to use our official release, than you can set the DataProvider of the two controls in the code behind.

In your XAML:
<pivot:RadPivotGrid x:Name="Pivot" Grid.Column="0" />
<pivot:RadPivotFieldList x:Name="FieldList" Grid.Column="1" />

And in the code behind:
InitializeComponent();
LocalDataSourceProvider dataProvider = (this.Resources["LocalDataProvider"] as LocalDataSourceProvider;
dataProvider.BeginInit();
dataProvider.ItemsSource = App.CurrentSeance.ListData;
this.Pivot.DataProvider = dataProvider;
this.FieldList.DataProvider = dataProvider;
dataProvider.EndInit();

Hopefully this helps.

Kind regards,
Rosen Vladimirov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Michel
Top achievements
Rank 1
answered on 19 Nov 2012, 08:48 AM
Hi Rosen,
Thanks for your answer.
Your solution works, but now drag'n'drop in PivotFieldList results in white screen...
I'm waiting your latest release to test again !
Michel
0
Rosen Vladimirov
Telerik team
answered on 19 Nov 2012, 01:49 PM
Hello Michael,

That's why I suggested to use one of our internal builds - we have fixed a lot of things and the problem with Drag and Drop from RadPivotFieldList is one of them.

Thanks for choosing RadPivotGrid. Feel free to send us feedback and notify us for any problems you have with RadPivotGrid and RadPivotFieldList.

Greetings,
Rosen Vladimirov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Michel
Top achievements
Rank 1
answered on 21 Nov 2012, 08:06 AM
Hi Rosen,
I have no more problems with last internal build.
I have a last question about RadPivotFieldList : is there a simple way to localize strings ?
Many thanks,
Michel
0
Rosen Vladimirov
Telerik team
answered on 21 Nov 2012, 03:33 PM
Hi Michael,

I'm glad your problem is resolved with our latest binaries.

With the current version Localization is not supported, but we'll try to do this feature for our official release in 2013 (Q1).

Please inform us for any kind of problems you have with RadPivotGrid. We are always happy to receive feedback from our customers.

All the best,
Rosen Vladimirov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
PivotGrid
Asked by
Michel
Top achievements
Rank 1
Answers by
Rosen Vladimirov
Telerik team
Michel
Top achievements
Rank 1
Share this question
or