Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
149022 | Nov 12,2019 08:30 AM UTC | Nov 22,2019 11:14 AM UTC | Vue | 3 |
![]() |
Tags: Data Grid |
<template>
<div id="app">
<ejs-grid id="Grid" ref="grid" :dataSource="data" :columns="columns" :allowPaging="true">
</ejs-grid>
</div>
</template>
<script>
...
export default {
data() {
return {
data: data,
columns: [
{ field: "OrderID", headerText: "Order ID", width: 150, isPrimaryKey: true },
{ field: "CustomerID", headerText: "Customer ID", template: '<span>${OrderID},${CustomerID}, ${ShipCity}, ${Freight}</span>', width: 150 },
{ field: "ShipCity", width: 150 },
{ field: "Freight", format: "C2", width: 150 }
]
};
},
...
};
</script>
|
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.