We are getting this inconsistency in the xml generated by the persistence framework, where by for some some instances the visible tag under PersistableColumnSetting is setting to false.
<PersistableColumnSetting>
<UniqueName>PermitID</UniqueName>
<Visible>false</Visible>
<Display>false</Display>
<SortExpression />
<GroupByExpression />
<OrderIndex>2</OrderIndex>
<CurrentFilterFunction>NoFilter</CurrentFilterFunction>
<CurrentFilterValue />
<AndCurrentFilterFunction>NoFilter</AndCurrentFilterFunction>
<AndCurrentFilterValue />
<Width />
<Aggregate>None</Aggregate>
</PersistableColumnSetting>
and these seem to happen to columns that are with Display set to false, this is ruining the our grid because we need these column in OnItemDataBound and these columns become blank.
<telerik:GridBoundColumn DataType="System.Int32" ReadOnly="True" Display="False" Exportable="False" UniqueName="PermitID" DataField="PermitID">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="TenantID" DataType="System.Int32" Display="False" ReadOnly="True" Exportable="False" UniqueName="TenantID" />
<telerik:GridBoundColumn DataField="PermitGUID" DataType="System.Guid" UniqueName="PermitGUID" Display="False" Exportable="False" ReadOnly="True">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn HeaderStyle-Width="115px" FilterControlWidth="50px" FilterControlAltText="Filter Ref column" Aggregate="Count" FooterAggregateFormatString="{0} items" DataField="PermitRef" HeaderText="Permit Ref" SortExpression="PermitRef" UniqueName="PermitRef" ItemStyle-Font-Underline="true" CurrentFilterFunction="Contains" AutoPostBackOnFilter="true"/>
We are finding it hard to debug because whenever we test, visible tag is always set to true, but some of our users are experiencing this. What triggers persistence framework to set visibility to false?