search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Programmatically Change DayPilotNavigator

Asked by Joe Ingle
3 years ago.

Hi

I'm using DayPilotNavigator along with DayPilotCalendar to implement an appointment booking system. The appointments are already predefined in a database with a status of 'available' and the appointments run from 9am - 12pm. I have an API that takes a number of arguments including VisibleStart.ToString("yyyy-MM-dd HH:mm") and VisibleEnd.ToString("yyyy-MM-dd HH:mm") to load the initial dataset, however, this just leaves a blank calendar if the user comes along after 12pm. The then need to click on another date to load available slots.

What I'd prefer is to load the day with the next available slot and reset the DayPilotNavigator to reflect that date instead of today's date.

Does this sound doable? Is anyone using it in a similar way?

Thanks

Joe

Answer posted by Dan Letecky [DayPilot]
3 years ago.

I'm not sure if that's what you are looking for but you can set the initially-selected date using DayPilotNavigatorConfig.SelectionStart property.

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.