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 customize a cell style

Thread ID:

Created:

Updated:

Platform:

Replies:

127584 Nov 25,2016 07:45 AM UTC Nov 28,2016 09:50 AM UTC JavaScript 1
loading
Tags: ejGrid
FRED XUE
Asked On November 25, 2016 07:45 AM UTC

The cell value is some number,
I need to set the style of each cell based on the value range,
e.g. <0 set color red, =0 set color black, 1~50 set color green, >50 set color blue
How to do this?

Farveen Sulthana Thameeztheen Basha [Syncfusion]
Replied On November 28, 2016 09:50 AM UTC

Hi Fred,   
 
 
Thank you for contacting Syncfusion support.   


 
 
Please use “queryCellInfo” event to customize the grid cell. We have already discussed about how to customize the cell using “queryCellInfo” in our Syncfusion Knowledge base, please find the KB in following link.   
 
 
 
  
 
 
Also, please refer to the API reference link for “queryCellInfo” event,  


 
 
   
 
 
Please check the online sample about conditional formatting using queryCellInfo event  


 
 
   
 
 
Regards,   


 
 
Farveen T.    
 


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

;