Get columnId in data grid.
Question

Hello, we're trying to add css class to a specific columns if they contains an specific value of string and we need to get the column id for the api.

Dear Dominic,
Greetings

Can you please provide more details on this concern ?
Currently its not clear what you want to achieve from your question.


Basically, I understand below from your question:
--> If the expression value is (what you want it to be) in one column cell, you want to add css in the cell element.

       - For this, you can add expression condition in your style classes attribute of the cell value. 

       - i.e. check below image.  Is it the same you are looking for ? you can define your classes and add them in condition. 


Regards,
Palak Patel

Dear Dominic,
Greetings of the day

Checking with you the possibility, if this solution was something you were looking for ?
If yes, I would suggest to mark it as resolved so other community members can get this resolution note once needed.

If its still not resolved, kindly let us know if you need any further help from community.

Regards,
Palak Patel

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.