All Demos / Tree Grid / Miscellaneous / Conditional Formatting

Blazor Tree Grid Example - Conditional Formatting

Loading Syncfusion Blazor Server Demos…
This demo passes automated axe checks with 0 violations — semantic markup, ARIA, full keyboard operation, visible focus. Section 508 conformant Accessibility report VPAT

This sample demonstrates conditional cell styling to highlight values and emphasize important statuses or priorities.

Enable conditional styling by handling the Tree Grid's QueryCellInfo event, and use the provided QueryCellInfoEventArgs to access the current cell's data and apply CSS classes or styles.

In this demo, Status and Priority columns are styled for values such as Open, In Progress, Validated, Closed, Low, Normal, High, and Critical. Parent task names are emphasized to show hierarchy.

More information on cell customization can be found in the documentation section.