Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
143492 | Mar 22,2019 11:36 AM UTC | Mar 22,2019 12:08 PM UTC | Vue | 1 |
![]() |
Tags: Data Grid |
new Vue({
el: '#app',
template: `
<div id="app">
<ejs-button id='collapse' cssClass='e-flat' @click.native='click'>Data</ejs-button>
<ejs-grid id="Grid" ref="grid" :actionBegin="Begin" :actionComplete="Complete" :allowPaging='true' height='315px'>
<e-columns>
. . .
</e-columns>
</ejs-grid>
</div>
`,
methods: {
click: function() {
axios.get('https://js.syncfusion.com/demos/ejServices/Wcf/Northwind.svc/Orders')
.then(function (response) {
this.$refs.grid.ej2Instances.dataSource=response.data.d;
})
},
Begin: function(e){
if(e.requestType == 'paging'){ // triggers before Paging action
console.log("BeforePaging");
}
},
Complete: function(e){
if(e.requestType == 'paging'){ // triggers after Paging action
console.log("AfterPaging");
}
}
},
provide: {
grid: [Page]
} |
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.