Quantcast
Channel: Mendix Forum Questions
Viewing all articles
Browse latest Browse all 83469

dynamically styling datagrid cells with cssselectorhelper widget

$
0
0
Hi, can anyone help me with implementing css styling so that the background color of a cell is dependent on the contents of a datagrid cell using cssselectorhelper widget? I’ve defined the new class in my css file (called redclass). If I inspect the page and add redclass class manually to the desired cell I see the results I want. Styles shows .mx-datagrid .mx-datagrid-body-table .mx-datagrid-body tr td .mx-datagrid-data-wrapper {   text-overflow; } .redclass{  background-color:#ff0000; }   Not sure how implement this through the cssselectorhelper widget though. The datagrid name is grid40 and has the following class: datagrid-hover datagrid-striped datagrid-bordered As a first step I’m just trying to get cssselectorhelper to change the background color for all cells in row 3. I’ve set the attribute as grid40 and style as : table[cssselectorhelper=grid40]td[row=”3”] { background-color:#ff0000; } but row 3 background color remains unchanged when I run it. Datagrid and the widget are in a container.

Viewing all articles
Browse latest Browse all 83469

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>