Reset/Clear pivotgrid

2 posts, 1 answers
  1. Rohit
    Rohit avatar
    20 posts
    Member since:
    Dec 2017

    Posted 16 Jan 2018 Link to this post


    I want to clear the pivotgrid contents.

    I am using LocalDataSourceProvider and providing datatable as itemsource.

    If I set the LocalDataSourceProvider object to null, I get NullReference exception.

    I have emptied the rows and columns, but the grid does not refresh.

  2. Answer
    Dess | Tech Support Engineer, Sr.
    Dess | Tech Support Engineer, Sr.  avatar
    4131 posts

    Posted 16 Jan 2018 Link to this post

    Hello, Rohit,   

    Thank you for writing.  

    When I set the LocalDataSourceProvider.ItemsSource property to null, no error occurs on my end with the latest version. It is necessary to clear the available RowGroupDescriptions, ColumnGroupDescriptions, and AggregateDescriptions. I have prepared a sample project demonstrating how to clear RadPivotGrid

    I hope this information helps. Should you have further questions I would be glad to help.
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top