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 : November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to set Sunday's must be "RED" color in Scheduler Control in c#

Thread ID:

Created:

Updated:

Platform:

Replies:

116966 Jul 11,2014 05:57 AM UTC Jul 19,2014 06:44 PM UTC WinForms 1
loading
Tags: ScheduleControl
Venkaiah
Asked On July 11, 2014 05:57 AM UTC

Hi Viewers,
 
Thanks for Responding Sync fusion products.
 
 Query #1 : I  need to set Sunday's must be RED color : I am expecting   to set  “RED color” for not the  appointments only  for the Schedule Cells on the Sundays.(For example leave days and Holidays(sun/Saturday) need to set different color)

Query #2 : Calender that aside of our Schedule control Must be today date to next three months only : I am  expecting  our Schedule control must  show only today date on words  foreword  and  the Calendar that displays aside the schedule control.  show only today date to nest three months 

Query #3: In the Scheduler Control i need to  restrict no of Appointments (for Example per day only 4 appointments only more then that need to restrict ) 
Query #4: In the Appointment form i need to Add  my controls for my extra design (like subject name + personal details ? Address etc.. )


I am very new to Sync fusion Controls could you please  Respond the above requested details and kindly  provide your desired solution.  Thank you Very Much Advance.
 

Muthukumar Kalyanasundaram [Syncfusion]
Replied On July 19, 2014 06:44 PM UTC

Hi Venkaiah,

 

Sorry for the delay.

 

 

 

 

 

 

 

Query 1

    Set the different color for particular days

 

 If you want to set the color for  particular days ( like Saturday and Sunday ), you can use this following code,

 

Code:

    

   this.scheduleControl1.Calendar.CalenderGrid.PrepareViewStyleInfo  +=new Syncfusion.Windows.Forms.Grid.GridPrepareViewStyleInfoEventHandler(CalenderGrid_PrepareViewStyleInfo);

 

   void CalenderGrid_PrepareViewStyleInfo(object sender, Syncfusion.Windows.Forms.Grid.GridPrepareViewStyleInfoEventArgs e)

        {

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

                e.Style.BackColor = Color.Red;

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

                e.Style.BackColor = Color.LightSkyBlue;

 

        }

 

 

 

 

Query 2

Show the  today date to next 3 month dates

 

 If you want to show the  today date to next 3 month dates by using the SelectedDates property to set the today date. Please refer the below code,  

 

Code:

 

    this.scheduleControl1.Calendar.SelectedDates.Clear();

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

    this.scheduleControl1.NavigationPanelFillWithCalendar = true;

 

 

 

Query 3

Set the maximum appointment   date

 

If you want to set the maximum appointment date in schedule control, by using the MaxAppointment property. Please refer the code,

Code:

      this.scheduleControl1.MaxAppointment = 4;

 

 

 

Query 4

Add your items in appointment form

 

If you want to add your items in appointment form, you can make use of below link.

 

Link:

  http://help.syncfusion.com/ug/windows%20forms/default.htm#!Documents/datausedbyscheduleco.htm

 

 

 

Please let us k now 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.

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

;