<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>
|