Hello I have a column with the excel type of filter. I would like these same conditions to be present in the filter
for example have a checkbox that filter for No Data based on the same conditions.
Similar, a check box with Phone
and finally a number of checkboxes for each device Id.
How can I achieve this custom filter?
<GridColumn Field=@nameof(Model.StartDevice.DeviceId) HeaderText="Device">
<Template Context="context">
@if (context is Model v)
{
if (v.StartDevice.DeviceId.IsNullOrWhiteSpace())
{
<span>No Data</span>
}
else if (v.StartDevice.DeviceType == Device.Phone)
{
<span>Phone</span>
}
else
{
@v.StartDevice.DeviceId
}
}
</Template>
</GridColumn>