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

selecting a date in the navigator

Asked by Tony
23 hours ago.

HI,

using web form ASP.NET, How can I programmatically select a date in the navigator?

What happens is if I select a date using the mouse, the navigator and the daypilotcalendar are refreshed.

but If I programmatically set the start date to today the daypilotcalendar is refreshed to today but navigator still has the yellow selection on the previously selected date

case "refresh":

DayPilotNavigator1.StartDate = DateTime.Today;

DayPilotCalendarDay.DataSource = GetData(DayPilotCalendarDay.StartDate, DayPilotCalendarDay.EndDate.AddDays(1));

DayPilotCalendarDay.DataBind();

DayPilotCalendarDay.Update();

break;

Thank you

Answer posted by Tony
23 hours ago.

I was able to manually select the current date in javascript inside the form using

dp_navigator.select(new Date());

thanks

Comment posted by Dan Letecky [DayPilot]
22 hours ago.

Thanks for posting your solution!

On the server side, you can change the selection by setting the SelectionStart value.

New Reply
This reply is
Attachments:
or drop files here
Your name (optional):