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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Not able to get selected date on schedule

Thread ID:

Created:

Updated:

Platform:

Replies:

146750 Aug 17,2019 02:27 PM UTC Aug 19,2019 11:48 AM UTC WinForms 1
loading
Tags: ScheduleControl
Tech
Asked On August 17, 2019 02:27 PM UTC

Hello,

I am trying to get date selected in schedule control on button click event but not able to get it. Also, I have an all-day event for a single day more than 15 then how I can view all events on schedule control?



Attachment: Screenshot_519_50a54182.rar

Jagadeesan Pichaimuthu [Syncfusion]
Replied On August 19, 2019 11:48 AM UTC

Hi Tech, 
 
Thanks for using Syncfusion product. 
 
Query 
Details 
I am trying to get date selected in schedule control on button click event but not able to get it 
We have analyzed your requirement and you can able to get the selected date value by using the below code snippet in button click. Here you can able to get the selected date by using the ClickDateTime method by passing the row index and column index of the ScheduleGrid. 
 
private void button1_Click(object sender, EventArgs e) 
{ 
    MethodInfo dynMethod = scheduleControl1.GetScheduleHost().GetType().GetMethod("ClickDateTime", 
       BindingFlags.NonPublic | BindingFlags.Instance, null, new Type[] { typeof(int), typeof(int) }, null); 
 
    var arguments =  new object[] { this.scheduleControl1.GetScheduleHost().CurrentCell.RowIndex,  
        this.scheduleControl1.GetScheduleHost().CurrentCell.ColIndex }; 
    var selectedDate = dynMethod.Invoke(scheduleControl1.GetScheduleHost(), arguments); 
 
    MessageBox.Show(selectedDate.ToString()); 
} 
 
Please refer the below sample for your reference. 
 
Please refer the below screen shot for your reference. 
 
 
 
Also, I have an all-day event for a single day more than 15 then how I can view all events on schedule control? 
We have analyzed your requirement to view all events in single day, but currently we don’t have support for this. Currently we can able to show only the limited events in each day like below, here on Jul 29 there is 5 events but two events only visible. 
 
 
 
If we misunderstood your requirement, please provide more information regarding the requirement. This would help us to proceed further. 
 
Regards, 
Jagadeesan

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon