Try adding a button in the custom collection. it does not acknowledge a selected item when a button is added and clicked. The button just works independently without returning data about the row it is embedded in. @ScottR
I did and it seems that this is a bug or a yet to be developed feature based on the fact that a button has the Click event and doesn't support the Press event handler....
It's hard to say without knowing your exact setup and app logic, but there are a number of ways to go about hiding a particular row, depending on whether pressing Decline has to update data or not and also depending on how you load the data into the collection.
I would assume that pressing Decline would trigger a query that updates a field somewhere, or else the row would display again to the user when the data is refreshed.
This implies that your main data query would have to filter the orders displayed to not include "declined" orders.
In that case, it could be as simple as:
Press Decline - trigger decline order query ( which updates a row and sets a status/flag for the given order).
As part of the decline order success, trigger/refresh the original data query (which filters the declined orders).
There are other methods also, like combining the above with a temp state so that the whole thing is more responsive to the user, but it would add quite a few more things to have in place.
How will the app know to hide that row for that user?
You could use the Hidden field on the container to hide that order based on a flag/condition, but that info needs to be stored somewhere whenever the Decline button is pressed.
If not the db, maybe local storage then - it depends on how you want to go for the app data structure logic.