Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
148679 | Oct 30,2019 06:57 AM UTC | Mar 23,2020 05:39 AM UTC | ReactJS | 7 |
![]() |
Tags: Scheduler |
onActionBegin(args) {
if (args.requestType === "toolbarItemRendering") {
let userIconItem = { template: '<input type="text" tabindex="1" id="dropdown" />', type: 'Input' }
args.items.push(userIconItem);
}
}
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' }
]
});
dropdown.appendTo(dropdowns);
}
} |
ThanksThat is great ..
Hi Amatressa,
Thanks for the update.
You are most welcome.
Regards,
Vengatesh
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.