When ag-grid’s default filter is enabled, the clear filter button only clears the text box and doesn’t refresh the column even though ‘clearButton’ and ‘applyButton’ params are set to true. After clicking the Clear filter button the text gets cleared from the textbox and I have to actually click Apply Filter button to remove the filter and refresh the column.
Below is my code:
result.filter = "date";
result.filterParams = {
applyButton: true,
clearButton: true
};
Is there a way where we can make Clear Filter button actually refresh the column along with clearing text box? Or is there any event available for clear button click which we can subscribe to? (in documentation there isn’t any event mentioned for clear button click)
Help will be appreciated
Source: AngularJS
from Angular Questions https://angularquestions.com/2017/10/03/angular-2-ag-grids-clear-filter-button-clears-the-textbox-without-refreshing-column-when-built-in-filter-is-used/
via @lzomedia #developer #freelance #web #lzomedia.com
No comments:
Post a Comment