New Telerik release hidden column not working

3 posts, 0 answers
  1. Vitaly
    Vitaly  avatar
    86 posts
    Member since:
    Aug 2011

    Posted 07 Apr 2014 Link to this post

    Good afternoon,
    I downloaded a latest release of Telerik Q1 14.Now I am experiencing a problelm on selectedindexchanged event.
    I have RadGrid with a column.A few column I made visible = false:
    <telerik:GridBoundColumn HeaderText="Title" DataField="POSITION" UniqueName="POSITION" ReadOnly="True"  >
                                 
     </telerik:GridBoundColumn>

    <telerik:GridBoundColumn DataField="TITLE" UniqueName="TITLE" Visible="false" >
     </telerik:GridBoundColumn>
      <telerik:GridBoundColumn HeaderText="Location" DataField="LOC" UniqueName="LOC" ReadOnly="True" >
                                           
      </telerik:GridBoundColumn>
      <telerik:GridBoundColumn DataField="MONTH" UniqueName="MONTH" Visible="false"  >
      </telerik:GridBoundColumn>

    When I select row SelectedIndexChanged event file and I try to retrieve a value from the columns including invisible like this:
    string pri = SummaryGrid.SelectedItems[0].Cells[2].Text;
    string month = SummaryGrid.SelectedItems[0].Cells[5].Text;

    but all visible columns works fine however invisible column like "MONTH" getting value "&nbsp;" instead of data.

    I did not have this issue with the oldest release.

    Please help me.

    Thanks so much.
     
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 08 Apr 2014 in reply to Vitaly Link to this post

    Hi Vitaly,

    This is the expected behavior of the control with latest version. One suggestion is that you can try setting the Display property as false for accessing the column value. Please take a look into this forum thread which discuss about the same issue.

    Thanks,
    Shinu.
  3. Eyup
    Admin
    Eyup avatar
    3962 posts

    Posted 10 Apr 2014 Link to this post

    Hi Vitaly,

    Thank you for contacting us.

    You can find the reasons and consequences of the mentioned change in the following thread:
    http://www.telerik.com/forums/breaking-change-hidden-column-cell-text-is-not-persisted-in-viewstate

    In a nutshell, you will need to replace the Visible properties with Display.

    Hope this helps. Sorry for any inconvenience this might have caused you.


    Regards,
    Eyup
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top