Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
150450 | Jan 7,2020 06:58 PM UTC | Jan 10,2020 08:41 AM UTC | Vue | 5 |
![]() |
Tags: Data Grid |
public dataBound() {
if (this.grid) {
const columns: ColumnModel[] = this.grid.columns as ColumnModel[];
for (const col of columns) {
col.width = 120;
}
this.grid.refreshColumns();
}
} |
<div id="app">
<ejs-grid
id="Grid"
ref="grid"
:allowPaging="true"
:editSettings="editSettings"
:load="load"
:dataBound="dataBound"
></ejs-grid>
</div>
dataBound: function() {
this.$refs.grid.ej2Instances.autoFitColumns();
}
provide: {
grid: [Page, Edit, Toolbar, Resize]
} |
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.
This page will automatically be redirected to the sign-in page in 10 seconds.