board logo
Posted by: WUICTeam - Wednesday, November 11, 2026 9:01:09 AM
[b]Update:[/b] [c]skipUrlSync[/c] and [c]skipFetch[/c] are now documented among the inputs of [c]wuic-filter-bar[/c]. Fixed in [url=https://wuic-framework.com/downloads/release-notes#v1.8.2]WUIC Framework 1.8.2[/url]. [i]The original answer below describes versions before 1.8.2.[/i] [b]Question[/b] I embed [c]wuic-filter-bar[/c] inside a dialog (or a page that already uses its own query string). Every time the user applies a filter, a sort or a page size, [c]filterInfo[/c], [c]sortInfo[/c] and [c]pageInfo[/c] show up in the URL and collide with my own parameters. How do I turn that off without losing the filtering itself? [b]Answer[/b] Set [c]skipUrlSync[/c] to [c]true[/c] on the filter bar. It is an input of [c]wuic-filter-bar[/c], so the filter, sort and page-size controls keep working but nothing is written to the address bar. [code] <wuic-filter-bar [hardcodedDatasource]="ds" [skipUrlSync]="true" /> [/code] Why it works: after each apply (basic or advanced filter, clear, sorting, page size) the bar first calls [c]fetchData()[/c] on the data source and then syncs the grid state to the query string, merging [c]filterInfo[/c], [c]sortInfo[/c] and [c]pageInfo[/c] into the current route's parameters. [c]skipUrlSync[/c] only skips that second step. The current state is still held by the data source ([c]filterInfo[/c], [c]sortInfo[/c], [c]pageSize[/c], [c]currentPage[/c]), and you can read it from the events: [c]onFilterApplied[/c], [c]onSortingApplied[/c] and [c]onPageSizeApplied[/c]. Two things to keep in mind: [list] [*][c]skipUrlSync[/c] does not stop the data fetch. If you also want the bar to only emit its outputs without calling the server, add [c]skipFetch[/c] ([c]true[/c]) and react to the outputs yourself. [*]Without URL sync, the filter state is not restored from a link or on page reload. If you need that, either keep the default behaviour or save the state yourself from the output events. [/list] Default is [c]false[/c] for both inputs, so a standard list page behaves as before. [url=https://wuic-framework.com/docs/filter-bar]Documentation: Filter Bar[/url]