How can I know the DataFiler filtering completion event?

Grids for WPF Forum

Posted 2 years ago by Sunshine - Appeon
Version: 21.1.3
Avatar

I use TreeListBox to make a list display control and provide filtering function.

I want to make some prompts after the filtering is completed, how do I know that the filter has completed its work?

Comments (3)

Posted 2 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

Filtering occurs either synchronously when the TreeListBox.RootItem is set (or child items are later added), or filtering is dispatched with Background priority when the filter itself is activated or changed.

It doesn't look like we currently have an event for when filtering is complete.  Would you like to see a TreeListBox.FilterCompleted event added?  I'm assuming that event should only fire in these scenarios:

  1. Filtering was just activated.
  2. The filter is active and was just changed.
  3. Filtering was just deactivated.

Do you agree with all that logic?


Actipro Software Support

Posted 2 years ago by Sunshine - Appeon
Avatar

Hi!

My current scenario is to enter some content in the search box, and then perform some other operations after the filter is finished.

At present, I only care about when the filter completes this operation after performing the filtering once. For the three scenarios you mentioned above, the parameters passed by the event should be able to distinguish which type of scenario it is called from, right?

In addition, I need to ask you to confirm that when the filter is reassigned, will the new filter be automatically called?

Posted 2 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

We will be adding a TreeListBox.FilterApplied event that is raised immediately after filtering is applied to all of the control's items.  It won't pass anything in the event arguments but you can look at the current filter state in the event handler to compare to a previous state from the last event occurrence if needing to know what changed.

Setting the TreeListBox.DataFilter property to a new value will raise the event after the new filter is applied.


Actipro Software Support

The latest build of this product (v24.1.1) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.