Invisible column loses value

4 posts, 0 answers
  1. Davide
    Davide avatar
    7 posts
    Member since:
    Nov 2007

    Posted 20 Jul Link to this post


    I've a problem with radGrid.

    If I hide a column in PreRender event using Me.Grid1.MasterTableView.RenderColumns(3).Visible = False, when I try to retreive the value in ItemDataBound event, the value is  

    If the column is visible, the value is shown correctly.

    I've recently updated Telerik from 2009.3.1314.35 to 2014.3.1209.35.

    Before this update, everything was working well

    I work with VS 2013.

    Any ideas?


  2. Davide
    Davide avatar
    7 posts
    Member since:
    Nov 2007

    Posted 20 Jul in reply to Davide Link to this post

    I found a solution by myself:

    in the ItemDataBound event, I can use e.Item.DataItem(..columnname..) instead of e.item.cells(3).text, where 3 is the index of "columnname".

    Even if the column is hidden, the DataItem is populated correctly.

    But if there is a better solution....



  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Konstantin Dikov
    Konstantin Dikov avatar
    1796 posts

    Posted 22 Jul Link to this post

    Hello Davide,

    If you update to our latest versions you could add the following in your web.config file and it will revert back the previous behavior of the hidden columns:
      <add key="BindGridInvisibleColumns" value="true" />

    Another option is to set the Display property of the column to "false", instead of the Visible property.

    Konstantin Dikov
    Telerik by Progress
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  5. Davide
    Davide avatar
    7 posts
    Member since:
    Nov 2007

    Posted 22 Jul in reply to Konstantin Dikov Link to this post

    Wow Konstantin, your web.config solution works well!!!!

    Before my post, I tried to use display instead of visible without results.

    But inserting the new key in web.config as you suggested, the grid works correctly as previous Telerik version!

    Thank you very much.


Back to Top