Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

BarathAravindKannan
Copy link
Collaborator

Bug description

Task Link - https://dev.azure.com/EssentialStudio/Ej2-Web/_workitems/edit/974543
PR with source Changes - https://gitea.syncfusion.com/essential-studio/ej2-blazor-source/pulls/25106

Solution description

We made the applying of styles with a hierarchy.
Following is the hierarchy level:
To add style for a cell: AddStyle > SetAttribute > Custom Attribute
To add class for a cell: AddClass and Custom Attribute adds to existing class list. SetAttribute will override existing class attribute for / and document it.
The documentation is now include with the above part, you can see a preview below

Preview Documentation:

Additonally, there are more ways to customize the appearance of the Syncfusion Blazor DataGrid cell such as: AddStyle, SetAttribute, and CustomAttributes.

  • The precedence hierarchy is: AddStyle (highest), SetAttribute, CustomAttributes (lowest).
  • Prefer AddStyle for specific cell styling, AddClass or CustomAttributes for applying classes, and SetAttribute for non-class attributes.
  • For example, if color: red; is set via CustomAttributes, color: yellow; via SetAttribute, and color: green; via AddStyle, color: green; will be rendered. Use these methods based on your use case to ensure the desired styling is applied correctly.

@SyncfusionBuild
Copy link
Contributor

Build Status: INPROGRESS 🔃
Build Location: 978251-CellStyleRevamp

@SyncfusionBuild
Copy link
Contributor

CI Status: FAILURE ❌
Source Compilation: SUCCESS ✅
Failure Reason: CI Failure with violation
Build Location: 978251-CellStyleRevamp
Technical Error(s): 0
Spelling Error(s): 1
Image Alt Text Error(s): 0
Image Size Error(s): 0
Image Name Error(s): 0
Front matter Error(s): 0
File Path Error(s): 0
CodeSnippet File Path Missing Error(s): 0
Toc Anchor Tags Validation Error(s): 0
MD Tag Validation Error(s): 0

@SyncfusionBuild
Copy link
Contributor

Build Status: INQUEUE 🕒
Build Location: 978251-CellStyleRevamp

@SyncfusionBuild
Copy link
Contributor

Build Status: INPROGRESS 🔃
Build Location: 978251-CellStyleRevamp

@SyncfusionBuild
Copy link
Contributor

CI Status: SUCCESS ✅
Source Compilation: SUCCESS ✅
Build Location: 978251-CellStyleRevamp
Technical Error(s): 0
Spelling Error(s): 0
Image Alt Text Error(s): 0
Image Size Error(s): 0
Image Name Error(s): 0
Front matter Error(s): 0
File Path Error(s): 0
CodeSnippet File Path Missing Error(s): 0
Toc Anchor Tags Validation Error(s): 0
MD Tag Validation Error(s): 0

@SyncfusionBuild
Copy link
Contributor

Build Status: INQUEUE 🕒
Build Location: 978251-CellStyleRevamp

@SyncfusionBuild
Copy link
Contributor

Build Status: INPROGRESS 🔃
Build Location: 978251-CellStyleRevamp

@SyncfusionBuild
Copy link
Contributor

CI Status: SUCCESS ✅
Source Compilation: SUCCESS ✅
Build Location: 978251-CellStyleRevamp
Technical Error(s): 0
Spelling Error(s): 0
Image Alt Text Error(s): 0
Image Size Error(s): 0
Image Name Error(s): 0
Front matter Error(s): 0
File Path Error(s): 0
CodeSnippet File Path Missing Error(s): 0
Toc Anchor Tags Validation Error(s): 0
MD Tag Validation Error(s): 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants