We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

StartDate is wrong: it's always the first day of week

Hello,
When I try to add an Appointment, I always have the start date like the first day of the current week.
I want to set it as the double-clicked item column.
Is there a way to take the date from the double-clicked cell (for example take the column caption)?

Thanks.
Dario.

3 Replies

PM Piruthiviraj Malaimelraj Syncfusion Team April 4, 2016 12:28 PM UTC

Hi Dario,


Thank you for using Syncfusion products,

The ShowingAppointmentForm event can be used to customize the Appointment form and please refer the below code snippet to get the column caption.

Code snippet     

void scheduleControl1_ShowingAppointmentForm(object sender, ShowingAppointFormEventArgs e)

{

           

  Object date= this.scheduleControl1.GetScheduleHost().Model[0,ColumnIndex].CellValue;
}

Sample

http://www.syncfusion.com/downloads/support/forum/123592/ze/CS-2004684458

Regards,
Piruthiviraj



DF Dario Fraschini April 5, 2016 01:06 PM UTC

Thanks for the help.
I also tried to do the same for the hour (row), but i had no success.

Can you give me a hint?
Thank you.


AS Amresh S Syncfusion Team April 6, 2016 05:13 PM UTC

Hi Dario,

Please create a new incident for this query in your direct-trac account for better follow ups. You can create an incident in the below link.

https://www.syncfusion.com/account/login

Regards,
Amresh S.

Loader.
Live Chat Icon For mobile
Up arrow icon