Skip to content

Conditional css class for grid row #156

Closed Answered by gvreddy04
jumppard asked this question in Q&A
Discussion options

You must be logged in to vote

@jumppard This feature is released as part of v1.6.0.

Conditional css class for grid row:

Link: https://demos.blazorbootstrap.com/grid#conditional-css-class-for-grid-row

<Grid TItem="Employee1"
      Class="table table-hover table-bordered"
      DataProvider="EmployeesDataProvider"
      AllowFiltering="true"
      AllowPaging="true"
      PageSize="5"
      AllowSorting="true"
      Responsive="true"
      RowClass="GetRowClass">

    <GridColumn TItem="Employee1" HeaderText="Id" PropertyName="Id" SortKeySelector="item => item.Id">
        @context.Id
    </GridColumn>
    <GridColumn TItem="Employee1" HeaderText="Employee Name" PropertyName="Name" SortKeySelector="item => item.Name">
…

Replies: 5 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@jumppard
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by gvreddy04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
enhancement New feature or request area-grid
2 participants