how to hide a record in listGrid at Screen Level.
Announcement
Collapse
No announcement yet.
X
-
Good question, actually.
How can one hide records (present in a Datasource) from the user?
E.g. when a user sets a field to a special meaning in a ListGrid, in the background a new hidden record is added to the datasource - without the user noticing.
Same could happen with fetch: some records shouldn't not be shown at all to the user.
I imagine a workaround would be to add all columns again with another name and set hidden. For those special records which should not be seen by the user, fill in those hidden columns instead of the real columns.
But this will leave an empty row in the grid, which can be seen by the user.
Comment
-
Woops, I just understood your proposal :)
But I'm wondering if the records are really fetched when doing a filter, as filterData should behave just the same as fetchData does: if fetch doesn't 'get' the record (because visible == false), then the record won't be in the datasource resultset, hence it won't exist when you send all records back to server.
That's what I'm looking for: hide a record, but do send it to server.
Comment
Comment