Skip to content

Style not being applied to columns #117

@PriyaranjanKS

Description

@PriyaranjanKS

Hi @kushalmehrotra713 ,

I have been trying to apply column styles to the grid but it is not getting applied.

I am creating a style object as :

const headerStyle: Partial<IDetailsColumnStyles> = { cellTitle: { backgroundColor: "#FF0000", } };

And while defining the column, adding the above style
let dataGridColumns: IColumnConfig[] = [...fields].map(f => ({ styles:headerStyle, key: f.key as string, name: f.text, text: f.text as string, editable: true, dataType: 'string', minWidth: 100, maxWidth: 100, isResizable: true, includeColumnInExport: true, includeColumnInSearch: true, applyColumnFilter: true, disableSort:false }));

Unfortunately while running, the column styles are not getting rendered. Am I Missing something. Looking forward to you help on this.

image

Thanks in Advance !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions