Author Topic: cell highlighting  (Read 5566 times)

kavyasetty

  • Newbie
  • *
  • Posts: 25
    • View Profile
cell highlighting
« 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.


paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: cell highlighting
« Reply #1 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.
« Last Edit: November 28, 2013, 02:15:05 pm by paramquery »

kavyasetty

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: cell highlighting
« Reply #2 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

kavyasetty

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: cell highlighting
« Reply #3 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..  :(

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: cell highlighting
« Reply #4 on: November 28, 2013, 05:17:49 pm »
Put that code in refresh event.

http://paramquery.com/api#event-refresh

kavyasetty

  • Newbie
  • *
  • Posts: 25
    • View Profile
Re: cell highlighting
« Reply #5 on: November 28, 2013, 05:53:31 pm »
thanks :)
worked