<template>
<div id="app">
<div>
<ejs-grid . . . . . :rowDataBound="rowDataBound >
<e-columns>
<e-column field="Market" headerText="Order ID" :isPrimaryKey="true" width="100"></e-column>
<e-column field="IncidentDate" headerText="Inc. Date" textAlign="right" :allowFiltering="false" ></e-column>
<e-column field="ApprovalDate" headerText="Appr. Date" format="yMd" type="date" textAlign="right" :allowFiltering="false" ></e-column>
<e-column field="SubmissionDate" headerText="Sub. Date" type="date" :format="formatOptions" textAlign="right" :allowFiltering="false" ></e-column>
</e-columns>
</ejs-grid>
</div>
</div>
</template>
<script>
. . . . . . . . . . . . . . .
export default {
name: "App",
data: () => {
return {
data: [
{
Market: "Atlanta",
CaseID: 16753,
DemandAmt: 72667.16,
IncidentDate: "June, 05 2017 00:00:00",
CaseManager: "Erica Hubbard",
TotalPaid: 30854.51,
Client: "Anthony Hogan",
Attorney: "Melissa Auzine",
ApprovalDate: "April, 22 2019 11:53:42",
Status: "Active-Pending Settlement",
CaseType: "Surgical",
SubmissionDate: "April, 09 2019 14:36:54",
MLCaseIdentifier: "ML17753",
TotalBilled: 72667.16
. . . . . . . . .
}
],
formatOptions: { type: "date", format: "M/d/y" },
editSettings: {
allowDeleting: true,
allowAdding: true,
allowEditing: true,
mode: "Batch"
},
};
},
methods: {
rowDataBound: function(args) {
// Need to change string value to data value
args.data.ApprovalDate = new Date(args.data.ApprovalDate);
args.data.SubmissionDate = new Date(args.data.SubmissionDate);
}
},
|