How to get selected date from webmonthview when user click on date area? not header
Thanks
Thanks Marina,
It's work fine.
Hello Syne,
I have further investigated your case and I would like to let you know that the WebScheduleInfo control manages and exposes all scheduling information and control state synchronized across one or more WebSchedule views. That means that you can take the selected day by accessing the WebScheduleInfo like this:
function WebMonthView1_Click(oDayView, oEvent, element){
var selectedDay = oDayView.getWebScheduleInfo().getActiveDay().format("dd MMM yy");
}
Here are some useful resources:
http://help.infragistics.com/Doc/ASPNET/Current/CLR4.0?page=WebScheduleInfo_About_WebScheduleInfo.html
Please, let me know how my suggestion work for you.
Hi Marina,
Thanks for your fast reply. I would like to get the selected date and do some validation checking before open modal dialog.
var selectedDay = element;
is get the whole element, how can i get the selected date?
Example: if i click on 16 Jun 2015 date area, how can i get the "16 Jun 2015"?
Thank you for using our community.
I would like to suggest you using a click event. That way when you click on a particular day you will have access to the DOM element of the selected day. Here is a sample code:
If you give me more information on what exactly you want to accomplish, by getting the selected day, I could better assist you.
If you have further questions, don’t hesitate to contact us.