I already asked this question some time ago, but since I'm again in a similiar situation and can't get something useful out of the old forum posts:
How can I set an initial filter on page load which the user can remove by just clearing the the set value in the filter-row on top of the grid?
I have set a FilterValue in the grids properties (Columns-Popup) which works well for the visuals.
But I still can't create a working filter on the grids load event.
I tried this:
${event.filter ? event.filter : 'ID eq ' + preselectedID}
but it leads to the following problem:
When the user clears his filters, the grid shows exactly one entry, which was indeed wanted when the page loaded, but not anymore after the user starts to filter for something else in the grid.
I can't distinguish between a filter not being in the event because
- the user cleared his inputs
- the page just loaded for the first time
Thanks in advance
Moo