Setting the scroll position of the dayview

I am using schedule  control to book apointments. 
But every time a pick another day in the navigation panel then the calender panel goes all the way up to the start of that day.
Very inconvenient when search for an free spot in the evening hours. 

Is it possible to set 'the cursor' to a specific time of the day?


2 Replies 1 reply marked as answer

BT Balamurugan Thirumalaikumar Syncfusion Team April 20, 2021 04:08 AM UTC

Hi Jan, 

Thank you for interesting in Syncfusion products. 

We could understand your scenario at our end. we are checking the possibilities to achieve your requirement in sample level. Will update you the proper details on April 20,2021. We appreciate your patience till then. 

Balamurugan Thirumalaikumar  




BT Balamurugan Thirumalaikumar Syncfusion Team April 20, 2021 01:16 PM UTC

Hi Jan, 

Thank you for your patience. 

We have checked your query “Setting the scroll position of the dayview” at our end. To achieve this requirement we suggest you to change the scroll position based on the current selected cell. By using navigation button click event you can set the scroll bar based GridSetCurrentCellOptions. Please refer the following code snippet and sample for your reference. 

Code Snippet 
//To capture the caption panel navigation button 
foreach (Control con in this.scheduleControl1.CaptionPanel.Controls) 
{ 
  if (con is ThemedScrollButton) 
   { 
    ThemedScrollButton button = con as ThemedScrollButton; 
    button.Click += button_Click; 
   } 
} 

//Navigation button click 
void button_Click(object sender, EventArgs e) 
{ 
  GridCurrentCell cc= this.scheduleControl1.GetScheduleHost().CurrentCell; 
  int row = cc.RowIndex; 
  int col = cc.ColIndex; 
  this.scheduleControl1.GetScheduleHost().Focus(); 
  cc.MoveTo(row, col, GridSetCurrentCellOptions.ScrollInView); 
} 

We have attached the tested sample for your reference and you can download the same from the following location. 

Regards, 
Balamurugan Thirumalaikumar 


Marked as answer
Loader.
Up arrow icon