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? 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? 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';
Sign up to request clarification or add additional context in comments.

1 Comment

or use e.rowElement.style.backgroundColor = '#d6dde7'

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.