I have implemented 'Today','Two day ','Week' viewPreset,It is working fine.
} else if(fullValue.includes('Today')) {
const today = DateHelper.clearTime(new Date()); today.setHours(8); this.schedulerObj.setTimeSpan(today, DateHelper.add(today, 12, 'hour'));
this.schedulerObj.viewPreset = "hourAndDay";
} else if(fullValue.includes('Twoday')) {
const today = DateHelper.clearTime(new Date());
var two_days = new Date(today.getTime() + 1*24*60*60*1000);
today.setHours(8);
this.schedulerObj.setTimeSpan(today, DateHelper.add(two_days, 19, 'hour'));
this.schedulerObj.viewPreset = "hourAndDay";
} else if(fullValue.includes('Week')) {
this.schedulerObj.viewPreset = "weekAndDay";
}
issue:
If i click today or Two-day from week view it will not change week view to today or two day with hourAndDay. Instead it is highlighting current day in week view itself.
Expected :
when Today or Two-day selected from week view it should show today or two day with hourAndDay format.
when i click today button twice getting expected result.