Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
285
Loading Expanded XamPivotGrid
posted

Hi,

I want to expand all hierarchies and dimensions of xampivotgrid by default. That is when the grid loads, the user should see all items expanded. I am using flatDataSource with hierarchyLevelDescriptors as the data source.

 

Please Help! Thanks in advance

Parents
  • 22015
    posted

    Hello Ritika,

     

    Thank you for your post!

     

    I have been looking into it and have created a small sample application for you. In the sample application I have a simple XamPivotGrid with FlatDataSource as DataSource for the grid.

    Than I am creating a method called ExpandToLevel. In this method I am setting the IsExpanded property for the dimensions, that are set in the XamPivotGrid.

    I have handled the ResultChanged event of the XamPivotGrid too. On this event I am getting the rows and the columns of the XamPivotGrid and assign them the ExpandToLevel method.

     

    Please find the attached sample application and feel free to let me know if you have any further questions on this matter.

    PivotGrid_ExpandFlatDataSource.zip
Reply Children