this.MasterTableView.Columns.Clear() does not clear the private variable this.viewStateNotManagedCount

2 posts, 0 answers
  1. Ole Oscar
    Ole Oscar avatar
    10 posts
    Member since:
    Jan 2015

    Posted 18 Feb Link to this post

    It can be reproduced by creating some columns, then clear and then add less columns that the initial numbers of columns.

    Then the control throws an exception in SaveViewState saying the index is out of range.


    Ole Oscar Johnsen

  2. Viktor Tachev
    Viktor Tachev avatar
    1440 posts

    Posted 22 Feb Link to this post

    Hello Ole,

    If you are creating the RadGrid dynamically you should use the approach described in the following article. Please give it a try and see how it works for you.

    Viktor Tachev
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. DevCraft R3 2016 release webinar banner
Back to Top