ParamQuery grid support forum

General Category => Help for ParamQuery Grid (free version) => Topic started by: kavyasetty on November 28, 2013, 01:03:17 pm

Title: cell highlighting
Post by: kavyasetty on November 28, 2013, 01:03:17 pm
how can we highlight a particular cell with a different color border or background knowing the row Index and column index of a cell???
for example , i have a cell with invalid data i need to highlight that cell with red color.

is this possible ? how can i do this.

Title: Re: cell highlighting
Post by: paramvir on November 28, 2013, 02:13:27 pm
get the cell with API getEditCell or getCell method

http://paramquery.com/api#method-getEditCell

http://paramquery.com/api#method-getCell


and apply css or class using jQuery.
Title: Re: cell highlighting
Post by: kavyasetty on November 28, 2013, 03:11:47 pm
can you please provide me an example for this. I used getcell method and tried applying the css using .css() and even tried addClass methode of jquery and it is not working. please provide me a small example of doing this
Title: Re: cell highlighting
Post by: kavyasetty on November 28, 2013, 04:48:55 pm
the problem i am facing is if there are 10 cells which has error and in a for loop i want to apply css , for every iteration the grid is newly created . and css applies to new cell and disappear for next iteration. even the css effect is disappearing after using scroll..  :(
Title: Re: cell highlighting
Post by: paramvir on November 28, 2013, 05:17:49 pm
Put that code in refresh event.

http://paramquery.com/api#event-refresh
Title: Re: cell highlighting
Post by: kavyasetty on November 28, 2013, 05:53:31 pm
thanks :)
worked