Megabit / Blazorise

Blazorise is a component library built on top of Blazor with support for CSS frameworks like Bootstrap, Tailwind, Bulma, AntDesign, and Material.
https://blazorise.com/
Other
3.18k stars 517 forks source link

CellStyling of datagrid is not exists #5571

Closed zandiarash closed 2 weeks ago

zandiarash commented 2 weeks ago

Blazorise Version

1.5.3

What Blazorise provider are you running on?

Bootstrap5

image

There is a problem with CellStyling.
Actually It seems there is no CellStyling attribute.

stsrki commented 2 weeks ago

The CellStyling is located on a DataGrid. That's why you don't see it.

The use case would be

<DataGrid TItem="Employee"
  Data="@inMemoryData"
  CellStyling="@((item, Column, styling)=>styling.Style = "something" )">
David-Moreira commented 1 week ago

The third argument is a styling dedicated class that can be used to customize:

image

So in your example you would do

- Column.Class = "something"
+ styling.Class = "something"
zandiarash commented 1 week ago

The third argument is a styling dedicated class that can be used to customize:

image

So in your example you would do

- Column.Class = "something"
+ styling.Class = "something"

Thank you for the fast reply. :)