Comments (2)
Hey @mahammahmood ... this is because the renderCell
function you use defines a custom background color for your cell:
renderCell: (params: any) => (
<>
<Box
px="10px"
sx={{
backgroundColor:
params.row.RAD_Complete_F < params.row.RAD_Complete_A
? "#FFE7E5"
: "#CAFFE4",
height: "100%",
width: "100%",
}}
>
<Stack
justifyContent="center"
sx={{
height: "100%",
width: "100%",
color:
params.row.RAD_Complete_F < params.row.RAD_Complete_A
? "#FF2D1E"
: "#139B57",
}}
>
{formatCustomCompleteDate(params.value, storedDateFormat)}
</Stack>
</Box>
</>
),
In your screenshot you can see that the background of your cell is actually using the selection background color, but the red content is overlaying it, so it is not shown
from mui-x.
The issue has been inactive for 7 days and has been automatically closed.
from mui-x.
Related Issues (20)
- [charts] `onMarkClick` not working HOT 5
- [question] Can you help me adding code for the ticket https://github.com/mui/mui-x/issues/13298 HOT 2
- [data grid] Shift + Arrow Keys Not Selecting Correct Rows After Independent Row Selection HOT 2
- [data grid] re-rendering / resetting filter on state change HOT 2
- [charts][docs] The AxisConfig API page is wrong
- [question] I am using the row grouping feature with mui premium. By default the total row count is calculated based on number of parent rows (top level rows). I need a way to set the page row count based on the number of child rows. Is there any way to do that? HOT 1
- Page row count to be set on child rows when row grouping is applied
- & .MuiDataGrid-columnHeaders is not working with @mui/x-data-grid-pro": ^7.1.1
- [charts] How to add min and max scaling on axis for bar charts to remove decimal scale values HOT 3
- DataGrid changing data is slow
- [question] How can i remove column sorting from datagridView ? (^6.19.6)
- MUI Datagrid sortComparator function signature is not available when using typescript
- [data grid] Row spanning with tree/grouping behavior HOT 1
- [charts] Pie chart overflow with legend HOT 2
- [data grid]: there is an issue with the design on the right side when dragging
- When used Styled Datagrid, processRowUpdate does not fired.
- [charts] types not exported from ChartsTooltipTable HOT 6
- Leap year data grid date column filter cant be filled from left to right HOT 1
- Points between two "ticks" are not drawn, and also points are not connected by lines because of it HOT 1
- Tooltips for points on the edge of the chart are not always shown with tooltip trigger item HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mui-x.