Posted 14 September 2020, 2:04 am EST
Hi,
The refreshOnEdit property only works if you are adding the new item using CollectionView. In your scenario, you are directly adding the new item to the sourceCollection and calling the refresh method to update the new item. As soon as you will call the refresh method, the new item will be filtered out.
If you wish to prevent the filtering then you will need to use the addNew method of the CollectionView but it will only add the item at the last position.
There is one solution you can try. Use the addNew method to add the item at the last position and when the filter is applied again, move the item to the first position. Please refer to the sample link below and let us know if this fulfills your requirements:
https://stackblitz.com/edit/angular-xfjkfq
~regards