This project is read-only.

conditional classess on rows

Aug 1, 2014 at 1:02 PM
This has been discussed before

Conditional Classes on rows

I would like to colour code each row in my grid depending on an item property

I can set one row via SetRowCssClasses

but is there any way to do what I require

Aug 1, 2014 at 2:54 PM
worked it out

just used ternery operator thus

).SetRowCssClasses(item => item.ProgrammeIsDeleted ? "danger" : item.Islive ? "sucess" : string.Empty).WithPaging(35).Sortable(false)

can add as many as I need now