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.

Change background color of cell depending on subject name

Thread ID:

Created:

Updated:

Platform:

Replies:

123901 Apr 30,2016 12:40 AM May 2,2016 12:40 PM ASP.NET MVC 4
loading
Tags: Schedule
Mahindra Morar
Asked On April 30, 2016 12:40 AM

Hi,
Is it possible to change the background color of a cell depending on the string value of the subject name?

Thanks.

Manish
Replied On May 2, 2016 04:20 AM

Hi,

I am also looking for the same kind of solution. In my case if an attachment column contains path of the file name, then it should show attachment image and after click on it it should ask for download. If attachment column is empty, then cell should be blank.

Manish
Replied On May 2, 2016 08:03 AM

Hi,
Is it possible to change the background color of a cell depending on the string value of the subject name?

Thanks.

Hi Mahindra,

I just found the solution for this. It works for me. here is the link.
Syncfusion people are great.

Karthigeyan Krishnamurthi [Syncfusion]
Replied On May 2, 2016 12:37 PM

Hi Manish, 

Thank you for contacting Syncfusion support. 

Query: If column contains path of the file name, then it should show attachment image otherwise cell should be blank. 
 
We are happy to hear that your requirement is achieved. 
 
Regards, 
Karthigeyan K

Karthigeyan Krishnamurthi [Syncfusion]
Replied On May 2, 2016 12:40 PM

Hi Mahindra, 
 
Thank you for contacting Syncfusion support. 
 
Query: Is it possible to change the background color of a cell depending on the string value of the subject name? 
 
By default, Scheduler doesn’t have a built-in option to customize the cells based on the Appointment subject. An alternative way can be used to achieve the cell background customization based on specific time range or specific dates using the cell template option or queryCellInfo event. The cells can be customized in any one of the following ways. 
 
1.       QueryCellInfo option allows you to customize almost all the scheduler sub-elements such as work/time/header cells. 
 
2.       Template option allows you to customize the cells based on the date, view, resources and timescale. 
 
In case, if you need to customize the appointment background color using template option based on the appointment subject, we have prepared the sample which can be downloaded from the following location: 
 
If suppose, we have misunderstood your query or else if you need to customize only the background cells that lies behind the appointments – then kindly revert back to us with detailed information on which scenario do you need to customize the background cells behind the appointments, so that we will further analyze and provide you with better solution. 
 
Please let us know, if you need any further assistance on this. 
 
Regards, 
Karthigeyan 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.

;