How to debounce/delay SearchBuilder filtering/

How to debounce/delay SearchBuilder filtering/

DocaDoca Posts: 7Questions: 5Answers: 0

When using SearchBuilder on a serverside table, having the table refresh on each character input can be disruptive and it blocks further inputs until it loads the data.

Currently the normal search has a debounce feature and doesn't perform the search until after 400ms has passed, is there a way to make SearchBuilder behave the same?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 65,517Questions: 1Answers: 10,884 Site admin
    Answer ✓

    If you have searchDelay set, it should be doing a throttle (note that isn't the same as a debounce - it limits the number of requests in that time period, rather than waiting until the end of the timeout).

    I think I will change that to a debounce as it makes more sense than a throttle there. That will be in the next version though, which might be a little while out as it is part of a large change to move to DataTables 3.

    Regards,
    Allan

Sign In or Register to comment.