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

New Telerik release hidden column not working

1 Answer 30 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Vitaly
Top achievements
Rank 1
Iron
Iron
Vitaly asked on 07 Apr 2014, 05:15 PM
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.
 

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 10 Apr 2014, 07:13 AM
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.

 
Tags
General Discussions
Asked by
Vitaly
Top achievements
Rank 1
Iron
Iron
Answers by
Eyup
Telerik team
Share this question
or