Can we have views options in dropdown.
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??
SIGN IN To post a reply.
7 Replies
HB
Hareesh Balasubramanian
Syncfusion Team
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' }
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);
}
} |
Kindly check the above sample and revert us if you have any further assistance.
Regards,
Hareesh
SJ
Sudhanshu Jain
November 4, 2019 11:10 AM UTC
Above Solution is not working .Can you suggest another .
VD
Vinitha Devi Murugan
Syncfusion Team
November 5, 2019 08:56 AM UTC
Hi Sudhanshu,
We have checked the previously updated sample, but the dropdown view change working fine at our end. We have prepared a video demo for your reference with the below sample which can be downloaded from the following location.
Regards,
M.Vinitha devi
SJ
Sudhanshu Jain
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 .
HB
Hareesh Balasubramanian
Syncfusion Team
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.
Regards,
Hareesh
ThanksThat is great ..
Hi Amatressa,
Thanks for the update.
You are most welcome.
Regards,
Vengatesh
SIGN IN To post a reply.
- 7 Replies
- 5 Participants
-
SJ Sudhanshu Jain
- Oct 30, 2019 06:57 AM UTC
- Mar 23, 2020 05:39 AM UTC