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

Error 'ColumnName' is neither a DataColumn nor a DataRelation for table Table.

1 Answer 139 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Veenu
Top achievements
Rank 1
Veenu asked on 10 Mar 2011, 07:21 AM
In RadGrid we have a property "EnableColumnViewState" which can be set as false so that the grid when we add and remove columns across postbacks there is no error like "'ColumnName' is neither a DataColumn nor a DataRelation for table Table."

The same Error I am encountering in RadTreeList but i am unable to find a property like "EnableColumnViewState". Is there any Property like this available in RadTreeList currently. If not can anyone please tell me what else could be causing the issue.

Thanks In Advance.

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 15 Mar 2011, 03:11 PM
Hello Veenu,

Could you confirm if you are recreating the RadTreeList on each Page_Init (this must be so)? If you are already using Page_Init, does it not work if you set EnableViewState for the RadTreeList control itself?

Regards,
Tsvetina
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
TreeList
Asked by
Veenu
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or