We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Can you help to corrrectly join to Pager dropDownChanged event ?

Thread ID:

Created:

Updated:

Platform:

Replies:

145457 Jun 23,2019 03:03 PM UTC Jun 24,2019 06:33 AM UTC Vue 3
loading
Tags: Data Grid
Silvio
Asked On June 23, 2019 03:03 PM UTC

Hi,

In a Datagrid I need a method is recalled every time the user changes the number of elements in the page for the grid using the Pager combox.
I've seen in the documentation that this control should trigger a dropDownChanged  event.
But I'm not able to figure out how to connect to this event in the Vue environment.
Can you help me ?

Pavithra Subramaniyam [Syncfusion]
Replied On June 24, 2019 04:42 AM UTC

Hi Silvio, 
 
Thanks for contacting Syncfusion support. 
 
You can handle the “dropDownChanged” event of Grid Pager component by using the below way. Please refer to the below code example, documentation and sample link for more information. 
 
[App.Vue] 
<template> 
  <div id="app"> 
    <div> 
      <ejs-grid  ref="grid"  :created="created" :allowPaging="true" :pageSettings="pageSettings" 
        :dataSource="data" > 
        <e-columns> 
          .    .    . 
        </e-columns> 
      </ejs-grid> 
    </div> 
  </div> 
</template> 
 
<script> 
.   .  . 
  methods: { 
    created: function(args) {   // you can get the pager component inside the “created” event of Grid 
      this.$refs.grid.ej2Instances.pagerModule.pagerObj.dropDownChanged = e => { 
        console.log(e); 
      }; 
    } 
  }, 
  provide: { 
    grid: [Page] 
  } 
}; 
</script> 
 
 
 
Sample               : https://codesandbox.io/s/vue-template-c0edj 
 
Please get back to us if you need any further assistance on this. 
 
Regards, 
Pavithra S. 
 


Silvio
Replied On June 24, 2019 05:51 AM UTC

Fine!
Thank you!

Pavithra Subramaniyam [Syncfusion]
Replied On June 24, 2019 06:33 AM UTC

Hi Silvio, 
 
Thanks for your update. 
 
Please get back to us if you need any further assistance on this. 
 
Regards, 
Pavithra S. 
 


CONFIRMATION

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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon