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

How to set only 4 no of appointments per day in ScheduleControl in c#

Hi Viewers,
       1.    Here i am trying to set appointment per day 4 only more then 4 i need to restrict in the Schedule Control 
       2.   And i need to set Sunday's must be RED color 
       3.  Schedule Control must show Only  today date to foreword days only not show previews days
       4.   The days Format must be like Squired Shape like this as month's 
       5.  Calender Must be today date to next three months only 

I am very new to this Sync fusion controls please let me help 
                                                                         Thank you Very Much  in Advance 

1 Reply

MK Muthukumar Kalyanasundaram Syncfusion Team July 15, 2014 06:11 PM UTC

Hi Venkaiah,


Thank you for your interest in Syncfusion products.






        Query 1

Set Maximum Appointment



If you want to set maximum appointment per day, you can set the MaxAppointment property. You can make use of below code,



   this.scheduleControl1.MaxAppointment = 4;





        Query 2

Set color for days


If you want to set color for particular days, you can use PrepareViewStyleInfo event,you can make use of below code,



this.scheduleControl1.Calendar.CalenderGrid.PrepareViewStyleInfo += new GridPrepareViewStyleInfoEventHandler(CalenderGrid_PrepareViewStyleInfo);


void CalenderGrid_PrepareViewStyleInfo(object sender, GridPrepareViewStyleInfoEventArgs e)



            if (e.ColIndex >0 &&e.ColIndex == 1 && e.RowIndex >1)              

                e.Style.BackColor = Color.LightBlue;





     Query 3

Show only Today Date



If you want to show the  today date, you can make use of below code,








Please let us know if you have any concern.



Muthukumar K

Live Chat Icon For mobile
Up arrow icon