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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Can we have views options in dropdown.

Thread ID:





148679 Oct 30,2019 06:57 AM UTC Mar 23,2020 05:39 AM UTC ReactJS 7
Tags: Scheduler
Sudhanshu Jain
Asked On October 30, 2019 06:57 AM UTC

let's take example we have different views in scheduler like Day,Week,Month Views.So can we this Day,Week,Month options in Dropdown??

Hareesh Balasubramanian [Syncfusion]
Replied On October 31, 2019 01:51 PM UTC

Hi Sudhanshu, 

Greetings from Syncfusion Support. 

Based on the requirement we have prepared a sample using actionBegin and actionComplete events and the same can be viewed from the below link, 

  onActionBegin(args) { 
    if (args.requestType === "toolbarItemRendering") { 
      let userIconItem = { template: '<input type="text" tabindex="1" id="dropdown" />', type: 'Input' } 
  onActionComplete(args) { 
    let dropdowns = this.scheduleObj.element.querySelector('#dropdown'); 
    if (args.requestType === 'toolBarItemRendered') { 
      let dropdown = new DropDownList({ 
        popupHeight: '200px', 
        value: 'Week', 
        change: function (event) { 
          var view = document.querySelector(".e-schedule").ej2_instances[0]; 
          view.currentView = event.value; 
        fields: { text: 'text', value: 'value' }, 
        dataSource: [ 
          { text: 'Day', value: 'Day' }, 
          { text: 'Week', value: 'Week' }, 
          { text: 'WorkWeek', value: 'WorkWeek' }, 
          { text: 'Month', value: 'Month' } 

Kindly check the above sample and revert us if you have any further assistance. 

Sudhanshu Jain
Replied On November 4, 2019 11:10 AM UTC

Above Solution is not working .Can you suggest another .

Sudhanshu Jain
Replied On November 8, 2019 11:41 AM UTC

Can we have Calendar selection component of scheduler in custom component .
Can we have different views in scheduler like Day,Week,Month Views in dropdown, and this dropdown will be sit in custom component .By this custom component we can perform same action which was available on scheduler .Please find requirement screen shot below .

Hareesh Balasubramanian [Syncfusion]
Replied On November 13, 2019 12:51 AM UTC

Hi Sudhanshu, 

Thanks for being patience. 

Based on your requirement, we have prepared a sample using CustomClassComponent and the same can be viewed from the following link, 

Kindly try the above sample, if you have any concerns please revert us back for further assistance. 


Replied On March 21, 2020 06:06 PM UTC

That is great .


Vengatesh Maniraj [Syncfusion]
Replied On March 23, 2020 05:39 AM UTC

That is great .


Hi Amatressa,


Thanks for the update.


You are most welcome.





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