Hi Timmy,
Greetings from Syncfusion support.
We suggest you to use property binding for the AllowFiltering property of Grid. Please refer and use as like the codes below,
|
<SfButton OnClick="OnClick">Change filter state</SfButton>
<SfGrid TValue="OrdersDetails" ... AllowFiltering="@AllowFilteringState">
...
</SfGrid>
public bool AllowFilteringState = false;
public void OnClick()
{
AllowFilteringState = true;
}
|
Please get back to us if you need further assistance.
Regards,
Renjith R