public void ValueChange(ChangeEventArgs<bool> args)
{
Grid.FilterByColumn("Datum", "equal", args.Checked);
}
|
|
<GridColumn Field=@nameof(Order.Datum) HeaderText="Datum" TextAlign="TextAlign.Center" DisplayAsCheckBox="true" Width="150">
<FilterTemplate>
<SfCheckBox TChecked="bool" ValueChange="ValueChange"></SfCheckBox>
<SfButton OnClick="OnClick">Clear</SfButton>
</FilterTemplate>
</GridColumn>
|
Hello, I tried the above approach to clear the filter and it is working fine. But the template checkbox is not getting cleared. Is there any way to clear that selection?
Well, found a way to handle it!!
Bind value for the check box and set it to false on ClearFiltersAsync method. Please let me know if there is any way to take care of it without this additional piece of code.
Hi
SivaKrishnan,
Based on the problem you've reported, it seems that the issue has been resolved
at your end. Using the bind-value to check or uncheck appears to be the proper
way to handle it.
Regards,
Prathap S