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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to Hide a Column in a Grid

Thread ID:

Created:

Updated:

Platform:

Replies:

130894 Jun 8,2017 04:43 PM UTC Jun 12,2017 04:44 AM UTC Angular 3
loading
Tags: ejGrid
Dave Monks
Asked On June 8, 2017 04:43 PM UTC

How do you hide a column in an ejGrid?
I thought it would be as simple as setting visible to false, however the below is not working for me as the column is still being displayed.

    <e-column field="ID" [isPrimaryKey]="true" editType="numericedit" headerText="ID" width="10" visible="false" textAlign="right"></e-column>

Anyone know why this doesn't work and what I should do instead?

Dave

Saravanan Arunachalam [Syncfusion]
Replied On June 9, 2017 05:21 AM UTC

Hi Dave, 
Thanks for contacting Syncfusion’s support. 
We have analyzed your provided code example and we have modified your to achieve your specified requirement. Please refer to the below code example. 
<e-column field="ID" [isPrimaryKey]="true" editType="numericedit" headerText="ID" width="10" [visible]="false" textAlign="right"></e-column> 
 
Regards, 
Saravanan A. 


Dave Monks
Replied On June 9, 2017 09:05 AM UTC

Thank you, can't believe it was something so simple.

Saravanan Arunachalam [Syncfusion]
Replied On June 12, 2017 04:44 AM UTC

Hi Dave,  
Thanks for your update.       
We are happy that the provided information helped you. 
Regards, 
Saravanan A. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;