Grid with list count property column


In this demo we show how you can have a count property in the grid, while also being able to sort and group by that property.
For this to work you need to add a get only property to your Entity (Lunch in our case public int MealsCount => Meals.Count();), after this you can use the count property as any other property.
However if you're using EntityFramework you'll also need to set the OrderByFunc on the GridModelBuilder.



Comments