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

PersistableColumnSetting Visible tag setting to false

1 Answer 45 Views
Persistence Framework
This is a migrated thread and some comments may be shown as answers.
Francis
Top achievements
Rank 1
Francis asked on 14 Nov 2019, 10:29 PM

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?

 

 

1 Answer, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 19 Nov 2019, 03:48 PM

Hi Francis,

The PersistenceFramework does not have any built-in logic for changing the Visibility of the columns and, unfortunately, I also was not able to reproduce it at my end. I tested setting the Display="False" of different column types, but the Visibility property of the saved settings is always set to "true". I am afraid that we cannot help much on this matter without being able to reproduce the problem and debug further the root of it (whether it is related to a bug, or some configuration specific).

Please, do let us know in case you manage to replicate the problem into a runnable sample and send it to us, so we can examine it further at our end.

Regards,
Vessy
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Persistence Framework
Asked by
Francis
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Share this question
or