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:





127584 Nov 25,2016 07:45 AM UTC Nov 28,2016 09:50 AM UTC JavaScript 1
Tags: ejGrid
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  


Farveen T.    


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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