Hi Sinchan,
Syncfusion Greetings.
Agenda view: The Agenda view lists out the appointments like a grid view for the next 7 days by default from the current date or selected date.
In your case we suspect that the current date is 07th Feb 2020 or the selected date is set to 07th Feb 2020. So, the Agenda view show the date range as 07th Feb 2020 to 13th Feb 2020 while navigating the view from Week to Agenda. Based on your requirement we have prepared the below sample by making use navigating event and agendaDaysCount property of the schedule like the below.
<ScheduleComponent width='100% height='650px'
showWeekend={false} selectedDate={new Date(2020, 1, 7)} ref={t => this.scheduleObj = t} navigating={this.onNavigation.bind(this)} agendaDaysCount={5}>
<ViewsDirective>
<ViewDirective option='Week' />
<ViewDirective option='Agenda' />
</ViewsDirective>
<Inject services={[Week, Agenda, Resize, DragAndDrop]} />
</ScheduleComponent>
onNavigation(args) {
if(args.currentView === 'Agenda') {
var currentViewDates = this.scheduleObj.getCurrentViewDates();
this.scheduleObj.selectedDate = currentViewDates[0];
}
}
Kindly try the above sample and revert us for further assistance on this.
Regards,
Vengatesh