Can't display RadPivotFieldList

6 posts, 0 answers
  1. Michel
    Michel avatar
    6 posts
    Member since:
    Nov 2012

    Posted 16 Nov 2012 Link to this post

    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
  2. Rosen Vladimirov
    Admin
    Rosen Vladimirov avatar
    640 posts

    Posted 19 Nov 2012 Link to this post

    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.

  3. DevCraft banner
  4. Michel
    Michel avatar
    6 posts
    Member since:
    Nov 2012

    Posted 19 Nov 2012 Link to this post

    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
  5. Rosen Vladimirov
    Admin
    Rosen Vladimirov avatar
    640 posts

    Posted 19 Nov 2012 Link to this post

    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.

  6. Michel
    Michel avatar
    6 posts
    Member since:
    Nov 2012

    Posted 21 Nov 2012 Link to this post

    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
  7. Rosen Vladimirov
    Admin
    Rosen Vladimirov avatar
    640 posts

    Posted 21 Nov 2012 Link to this post

    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.

Back to Top
DevCraft banner