Hi,
I'm trying to find an appropriate approach to have a newly added record appear as the first listGrid row.
My listGrid is configured with a backing ResultSet, uses paging and therefore may have only a partial
subset of the whole data the server has to offer for the currently active criteria. I managed to have newly
added rows bypass current criteria filtering so that newly added rows show up in the list even if they
don't match the current criteria (and that part works). I used DataSource.recordsMatchingFilter() to do so.
What I haven't figured out yet, is how to reliably have the newly added rows show up at the beginning of the list,
instead of sometimes at the bottom, sometimes at the top ...
I found a few forum posts about configuring the listGrid to sort so that the newly added rows would come up first
but I'm afraid this technique doesn't work since I'm using paged/partial client-side data.
What would be the suggested approach to have the newly added rows appear at the beginning of the list following
their inserting (add) ?
Thanks for your suggestions.
I'm trying to find an appropriate approach to have a newly added record appear as the first listGrid row.
My listGrid is configured with a backing ResultSet, uses paging and therefore may have only a partial
subset of the whole data the server has to offer for the currently active criteria. I managed to have newly
added rows bypass current criteria filtering so that newly added rows show up in the list even if they
don't match the current criteria (and that part works). I used DataSource.recordsMatchingFilter() to do so.
What I haven't figured out yet, is how to reliably have the newly added rows show up at the beginning of the list,
instead of sometimes at the bottom, sometimes at the top ...
I found a few forum posts about configuring the listGrid to sort so that the newly added rows would come up first
but I'm afraid this technique doesn't work since I'm using paged/partial client-side data.
What would be the suggested approach to have the newly added rows appear at the beginning of the list following
their inserting (add) ?
Thanks for your suggestions.
Comment