This is a migrated thread and some comments may be shown as answers.

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

1 Answer 31 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ole Oscar
Top achievements
Rank 1
Ole Oscar asked on 18 Feb 2016, 08:22 AM

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.

Regards

Ole Oscar Johnsen

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 22 Feb 2016, 12:47 PM
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.




Regards,
Viktor Tachev
Telerik
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
Tags
Grid
Asked by
Ole Oscar
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Share this question
or