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

2 posts, 0 answers
  1. Veenu
    Veenu avatar
    45 posts
    Member since:
    Jun 2008

    Posted 10 Mar 2011 Link to this post

    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.

  2. Tsvetina
    Tsvetina avatar
    1863 posts

    Posted 15 Mar 2011 Link to this post

    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?

    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!
  3. DevCraft R3 2016 release webinar banner
Back to Top