0

I have slick grid that I want to change row background color, when I find search result:

    protected showMatchItem() {
        this.searchresult.text(`${this.currentMatchIndex + 1} از ${this.matchIndexes.length}`);
        this.slickGrid.scrollRowIntoView(this.matchIndexes[this.currentMatchIndex], true);
       
        this.slickGrid.setCellCssStyles("highlight", this.matchIndexes[this.currentMatchIndex]) ;

    }

.highlight { background: yellow }

Mahsa
  • 1
  • mostly a duplicate of this SO [question](https://stackoverflow.com/questions/8930167/how-do-i-add-a-css-class-to-particular-rows-in-slickgrid) – ghiscoding Nov 10 '20 at 13:03
  • Does this answer your question? [How do I add a css class to particular rows in slickGrid?](https://stackoverflow.com/questions/8930167/how-do-i-add-a-css-class-to-particular-rows-in-slickgrid) – Pouria Hemi Nov 10 '20 at 13:23
  • Thanks but No ,I want , search for Example "Apple" when find this world change row style. – Mahsa Nov 11 '20 at 04:35

0 Answers0