Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
150187 | Dec 24,2019 07:34 PM UTC | Jan 3,2020 06:43 AM UTC | Vue | 3 |
![]() |
Tags: Data Grid |
<template>
<div id="app">
<ejs-grid id="Grid" ref="grid" allowFiltering=true :filterSettings='filter' :actionBegin='actionBegin' :dataSource="data">
<e-columns>
<e-column field="OrderID" headerText="Order ID" width="90"></e-column>
<e-column field="CustomerID" headerText="Customer ID" format="C2" 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,
filterSettings:{type:"CheckBox"}
}
},
methods: {
actionBegin:function(e){
if(e.requestType === 'filtersearchbegin' && e.columnName === 'CustomerID'){
e.operator = 'contains';
}
}
},
provide: {
grid: [Page, Filter]
}
};
</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.