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.
Unfortunately, activation email could not send to your email. Please try again.

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

Thread ID:

Created:

Updated:

Platform:

Replies:

116954 Jul 9,2014 09:42 AM Jul 15,2014 02:11 PM Windows Forms 1
loading
Tags: ScheduleControl
Venkaiah
Asked On July 9, 2014 09:42 AM

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 

Muthukumar Kalyanasundaram [Syncfusion]
Replied On July 15, 2014 02:11 PM

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,

 

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,

 

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,

 

Code:

    this.scheduleControl1.Calendar.SelectedDates.Add(DateTime.Today);

 

 

 

 

Please let us know if you have any concern.

 

Regards,

Muthukumar K


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.

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.

;