# Dropdown allowclear doesn't fire event

**URL:** <https://forum.radzen.com/t/dropdown-allowclear-doesnt-fire-event/5546>\
**Category:** Blazor Server\
**Created:** [November 7, 2020, 11:21pm UTC](https://forum.radzen.com/t/dropdown-allowclear-doesnt-fire-event/5546 "2020-11-07T23:21:01Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![SloSuenos](https://forum.radzen.com/user_avatar/forum.radzen.com/slosuenos/32/9256_2.png) [@SloSuenos](https://forum.radzen.com/u/SloSuenos)\
**Post date:** [November 10, 2020, 10:03pm UTC](https://forum.radzen.com/t/dropdown-allowclear-doesnt-fire-event/5546/3 "2020-11-10T22:03:31Z")

</div>

@enchev, thanks. The event wasn't firing because properties for the dropdown contained TValue = dynamic, which it didn't like I guess. Fixed by adding a TValue int attribute to the dropdown.

Still, I've been working for a couple of days to try to do something that should be so simple. After a filter has been set via the dropdown, if a user clicks the dropdown's 'X', I'd like the filter to be reset to none, and the datagrid refreshed to show all of the data again. But, clicking the 'X' seems to set the filter value to null, resulting in zero records displayed.

I figure I just need to test the value of the ${event} and if its null, then refresh or reload the datagrid, instead of filtering by its value. As a simple test to see if can even refresh the data datagrid and not have it filtered, I put a timed notification after the set filter, which after counting down should run the code to reset the datagrid. I've tried grid0.Refresh(), await grid0.Reset(), and I've even performed another get on the grid's data -

 ![image](https://forum.radzen.com/uploads/default/original/2X/e/eb3711f04dffc238d4b25788aeb8b7b13c8ee37b.png)

Nothing happens, the datagrid remains filtered. I'm sure I'm doing something ridiculously stupid.

Thank you for any assistance you can provide,  
Slosuenos

---

_[View the full topic](https://forum.radzen.com/t/dropdown-allowclear-doesnt-fire-event/5546)._
