Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
149405 | Nov 25,2019 12:57 PM UTC | Nov 27,2019 09:15 AM UTC | Vue | 3 |
![]() |
Tags: Data Grid |
<ejs-grid :dataSource="data" height='315px'>
<e-columns>
<e-column field='OrderID' headerText='Order ID' textAlign='Right' width=90></e-column>
<e-column field='Freight' headerText='Freight' textAlign='Right' format='C2'></e-column>
<e-column field='OrderDate' headerText='Order Date' format='yMd' type='date'></e-column>
</e-columns>
</ejs-grid>
|
<template>
<div id="app">
<ejs-grid id="Grid" ref="grid" :dataSource="data" :allowPaging="true">
<e-columns>
<e-column field="OrderID" headerText="Order ID" width="90"></e-column>
<e-column field="Freight" headerText="Freight" :format="format" width="90"></e-column>
<e-column
field="ShipCity"
headerText="Telefon"
width="150"
textAlign="Center"
></e-column>
</e-columns>
</ejs-grid>
</div>
</template>
<script>
. . .
export default {
data() {
return {
data: data,
format:{ format:'C5' , useGrouping: false,
minimumSignificantDigits:1, maximumSignificantDigits:3}
}
}
};
</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.