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

How to add column?

Thread ID:





142788 Feb 20,2019 04:04 AM UTC Feb 20,2019 12:22 PM UTC Vue 1
Tags: Data Grid
Stefan Tmusic
Asked On February 20, 2019 04:04 AM UTC

I am gonna import new column in the datagrid.
Help me..
Let me know, please.

Madhu Sudhanan P [Syncfusion]
Replied On February 20, 2019 12:22 PM UTC

Hi Michal, 

Thanks for contacting Syncfusion support. 

You can add new column to the existing grid column using the columns property as follows. 

<ejs-grid ref='grid' :dataSource="data" :allowPaging='true' :dataBound="dataBound"> 
    . . . .  

this.$refs.grid.columns.push({ field: 'CustomerName', headerText: 'Customer Name', width: 150 }) 
this.$refs.grid.columns = [...this.$refs.grid.columns]; //Assign the new set of columns to the columns property 

If this didn’t helped please get back to us with more information on your requirement. 

Madhu Sudhanan P 


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon