Hi,
I am using the client side double click event to show a custom appointment form.
How do i get the date-time on which user clicked in the month view, week view(dayview with visible days set to 7) and day view.
For month view (and old week view) i used the code snippet mentioned in this post http://blogs.infragistics.com/forums/t/41180.aspx, but this works only when user clicks on the header.
I am using the latest infragistics release (2011 volume 2)
Hello apppoint,
I am currently working on a sample. I will get back to you by Monday. If you have any questions, please let me know
Hello appoint,
I suggest using the ActiveDayUTC property of WebScheduleInfo. ActiveDayUTC represents the current and day.
For more information regarding this property, you may refer to the following documents:
http://help.infragistics.com/Help/NetAdvantage/ASPNET/2011.2/CLR4.0/html/Infragistics4.WebUI.WebSchedule.v11.2~Infragistics.WebUI.WebSchedule.WebScheduleInfo~ActiveDayUtc.html
If you have any questions, please let me know as well.
Hi Vivian,
How do i get the ActiveDay value in the client side event (Javascript).
Also will ActiveDay return the correct date on which the user double clicked in case of month view and weekview (day view with visible days set to 7).
ActiveDayUTC property holds the date that is in focus within the UI, thus it is rendered by WebMonthView. As different dates are clicked, the value of the ActiveDay changes accordingly.
To access the ActiveDay value in the client side event, and be on the safe side, you may have to set ActiveDayClientSynchronization property to Always. ActiveDaySycnchronization property determines how the WebSchedule elements attached to WebScheduleInfo synchronize their active day on the client side.
You may refer to the following documents for more details on ActiveDayClientSynchronization property:
http://help.infragistics.com/Help/NetAdvantage/ASPNET/2011.2/CLR4.0/html/Infragistics4.WebUI.WebSchedule.v11.2~Infragistics.WebUI.WebSchedule.WebScheduleInfo~ActiveDayClientSynchronization.html
http://help.infragistics.com/Help/NetAdvantage/ASPNET/2011.2/CLR4.0/html/Infragistics4.WebUI.WebSchedule.v11.2~Infragistics.WebUI.WebSchedule.ActiveDayClientSynchronization.html
On double click event you may reference the ActiveDay By using the following:
WebScheduleInfo.getActiveDay();
For additional information on WebScheduleInfo and WebMonthView CSOMs, please refer to the following document:
http://help.infragistics.com/Help/NetAdvantage/ASPNET/2011.2/CLR4.0/html/WebScheduleInfo_Object_CSOM.html
http://help.infragistics.com/Help/NetAdvantage/ASPNET/2011.2/CLR4.0/html/WebMonthView_Client_Side_Events_CSOM.html
Please let me know if you have any questions.