PersistableColumnSetting Visible tag setting to false

2 posts, 0 answers
  1. Francis
    Francis avatar
    10 posts
    Member since:
    Apr 2015

    Posted 14 Nov 2019 Link to this post

    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. 


                  <SortExpression />
                  <GroupByExpression />
                  <CurrentFilterValue />
                  <AndCurrentFilterValue />
                  <Width />


    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 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 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?



  2. Vessy
    Vessy avatar
    2334 posts

    Posted 19 Nov 2019 Link to this post

    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.

    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.
Back to Top