3

I am using devextreme grid in my angular 5 app. When specific item is triggered the following code executes:

public setRowColor(e){
   e.rowElement.css("background-color","#d6dde7");
}

rowElement is one of the properties of row. I get the following error when this method executes:

ERROR TypeError: e.rowElement.css is not a function

4
  • when this event is fired?
    – Aravind
    Commented Jan 5, 2018 at 12:01
  • when (onRowPrepared) is triggere in dx-data-grid Commented Jan 5, 2018 at 12:03
  • which version of devextreme you are using 17.1 or 17.2?
    – Aravind
    Commented Jan 5, 2018 at 12:16
  • I am using devextreme 17.1.7 Commented Jan 5, 2018 at 12:21

1 Answer 1

2

Turns out this is breaking change with the new version of devextreme, so I needed to add:

import 'devextreme/integration/jquery';
1
  • 3
    or use e.rowElement.style.backgroundColor = '#d6dde7'
    – yurzui
    Commented Jan 5, 2018 at 13:27

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.