When I have users who wish to create a new appointment using a WebDayView control, I'd like for them to be able to set the start time by double-clicking on a specific time slot in the DayView (note, I'm using my own appointment dialog because the default one didn't work for my needs). Is there a way I can get which time slot the user selected to create a new activity?
Hi Sukasa,
you may be able to get the html element (time slot) that was double-clicked from DblClick client event. This event contains parameters oDayView (the DayView client-side object), oEvent (the event object, which allows you to cancel the event, cancel the postback, or request a postback), and element (the html element that correspondends to what was double-clicked).
Each time slot is a tablecell (td) that has unique uie value, for example for 12am. uie = "SLOT0". 12:30am, uie = "SLOT1" and so forth.
Regards,
Riana
Infragistics ASP.NET team
Hi, that seems like a very unreliable method - if at any time your code changes or the DOM structure of the WebDayView changes, such an approach would likely break. Is there no provided client function to get this, and if not, will there be in future?