How to set defer layout update in PivotGrid?

It can be achieved by setting the property DeferLayoutUpdate to true via code or through the DeferLayoutUpdate check-box (UI option) inside PivotSchemaDesigner control.

If through XAML, please refer the below code sample.

  • xaml
  • <syncfusion:PivotGridControl HorizontalAlignment="Left" Name="pivotGrid" VerticalAlignment="Top" 
                     DeferLayoutUpdate="True" ItemSource="{Binding   Source={StaticResource data}}" >
            </syncfusion:PivotGridControl>

    Else if through Code-behind, please refer the below code sample.

  • c#
  • public MainWindow()
            {
                InitializeComponent();
                pivotGrid.DeferLayoutUpdate = true;
            }