We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Showing a column doesn't show the data for that column

When a column is hidden initially, then the user chooses to show the column using the column picker the data for that column is not shown. The column header and filter boxes appear, however, the data in the row doesn't appear, nor shift to the right in my example below. 

What I am trying to achieve is to hide the Id and ParentId columns on initial load but let the user opt to show them later. Also to have them included in the export files. Note, my PK and FK fields are GUIDs.

Thanks for the help...Scott

< EjsTreeGrid @ref="Grid" DataSource="@TreeData" IdMapping="OrgUnitId" ParentIdMapping="ParentOrgUnitId" TreeColumnIndex="3"
             AllowPaging="true" AllowExcelExport="true" AllowFiltering="true" AllowMultiSorting="true" AllowPdfExport="true"
             AllowReordering="true" AllowResizing="true" AllowRowDragAndDrop="true" AllowSorting="true" AutoCheckHierarchy="true"
             EnableAltRow="true" EnableCollapseAll="true" EnableHover="true" ShowColumnMenu="true">
    < TreeGridPageSettings PageSizeMode="PageSizeMode.Root" PageSize="50">
    < TreeGridEditSettings AllowEditing="true" />
    < TreeGridColumns>
        < TreeGridColumn Field="Id" HeaderText="Id" Width="100" IsPrimaryKey="true" Visible="false" AllowEditing="false">
        < TreeGridColumn Field="ParentId" HeaderText="ParentId" Width="100" Visible="false" AllowEditing="false">
        < TreeGridColumn Field="Code" HeaderText="Code" Width="20">
        < TreeGridColumn Field="Name" HeaderText="Name" Width="40">
    < /TreeGridColumns>
< /EjsTreeGrid>

2 Replies

SP Scott Peal January 15, 2020 02:24 PM UTC

In addition, if the user chooses to hide a column that was initially visible, the table appears messed up also.

Thanks again


PK Padmavathy Kamalanathan Syncfusion Team January 21, 2020 01:29 PM UTC

Hi Scott, 

Thanks for contacting Syncfusion Forums. 

We have confirmed that the reported issue is an issue in Grid. We have logged a defect report for the same “Misalignement issue while hide / showing a column”.  
 
Fix for the issue will be included in our next Bi-Weekly release which is expected to be rolled out on or before 12th February 2020. 
 
You can track the current status of your request, review the resolution timeline and contact us for any further inquiries through this link 
 
Disclaimer: The feedback link is in review state and you can check it once it is validated 
  
Note: To view the above feedback, kindly login into your account. 
 
Please let us know if you have any concern.  

Regards, 
Padmavathy Kamalanathan 


Loader.
Live Chat Icon For mobile
Up arrow icon