Bug accessing field value from code behind when column is set to visible="false"

2 posts, 0 answers
  1. Mark Kucera
    Mark Kucera avatar
    84 posts
    Member since:
    Sep 2009

    Posted 16 Apr 2013 Link to this post

    I just upgraded to 2013.1.403.40, and i have what seems like a bug.  In many places i use a radgrid and create a hidden databoundcolumn like this:

    <telerik:GridBoundColumn UniqueName="UpdateProfileActionID"     DataField="UpdateProfileActionID"   Visible="false"/>

    And i've always been able in my code-behind to access this value.  This allows me to pass around hidden ID fields usually that can be passed into an edit or delete command without having to make the column visible to the user.  After the 2013.1.403.40 upgrade these values in my code-behind are blank well, "&nbsp;". 

    1. is this intended behavior
    2. is there a way to make this work like it did before?

    I've confirmed that my code behind values are fine when i remove the Visible="false" flag.  So if the column is visible then i can access it in the code-behind.  I the column isn't visible then the value is &nbsp;.

    I've now already found two places where this has caused me a problem since upgrading and i'm scared how many other places i'm probably doing this that i haven't found yet.

    Thanks!
    -Mark
  2. Mark Kucera
    Mark Kucera avatar
    84 posts
    Member since:
    Sep 2009

    Posted 16 Apr 2013 Link to this post

    Ugh... i just found this...

    http://www.telerik.com/community/forums/aspnet-ajax/grid/breaking-change-hidden-column-cell-text-is-not-persisted-in-viewstate.aspx

  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top