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.
Unfortunately, activation email could not send to your email. Please try again.

How to Hide a Column in a Grid

Thread ID:

Created:

Updated:

Platform:

Replies:

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

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 01:21 AM

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 05:05 AM

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

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

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.

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.

;