Is there an event when I click the X button?
There is not such event, but it is possible to handle a related event, instead. The solution is descrived in DevExpress knowledge base: Which event is fired when the [x] button in the filter panel is clicked?