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
205
Axis Expansion does not show correct icon (i.e. plus/minus )
posted

 

Hi,

I am using Silverlight PivotGrid (v12.2); when I click on the expand/collapsed  icon on the Row, it expand/collapsed correctly but the icon doesn’t’ change. Also the the expand/collapsed  icon state is not correct when grid loaded, for example: even though all the rows are expanded to the lowset level it shows the plus icon.

 

I found, IsExpanded and IsToggleVisible property’s value is false for pivotGrid.GridLayout.RowHeaderCells, so I set header.IsToggleVisible = true, which shows the icon but in wrong state like I mentioned.

 

pivotGrid.LayoutLoaded += (psender, pevent) =>

  {

     foreach (var header in pivotGrid.GridLayout.RowHeaderCells)

       {

         if (header.Member.ChildCount > 0)

         {

 

           header.IsToggleVisible = true;

         }

      }

  }

 

 

Any idea how to fix this?

 

 

 

Thanks in Advance

 

Sheuly