# Valuelist displays former values

**URL:** <https://forum.servoy.com/t/valuelist-displays-former-values/21022>\
**Category:** Questions\
**Created:** [June 21, 2023, 5:17pm UTC](https://forum.servoy.com/t/valuelist-displays-former-values/21022 "2023-06-21T17:17:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rieder](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/rieder/32/4950_2.png) [@rieder](https://forum.servoy.com/u/rieder)\
**Post date:** [June 21, 2023, 5:17pm UTC](https://forum.servoy.com/t/valuelist-displays-former-values/21022/1 "2023-06-21T17:17:39Z")

</div>

Hi

We must change valuelist items on record change. In SC this works fine. But with NG in a data grid with singleClickEdit = true, the displayed valuelist items are always the ones from the former record.  
Either the event (onSelectedRowsChanged, onRecordSelection, onRecordEditStart) is too late or the items (combo or typeahead) are displayed too early.

Any idea, how we can display the correct, updated values?

Thank you and kind regards  
Birgit

---

<div class="post-metadata">

**Author:** ![paronne](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/paronne/32/5096_2.png) [@paronne](https://forum.servoy.com/u/paronne)\
**Post date:** [June 28, 2023, 8:53am UTC](https://forum.servoy.com/t/valuelist-displays-former-values/21022/2 "2023-06-28T08:53:11Z")

</div>

Hi Birgit,

i am not entirely sure about your use case; however it reminds me this issue with related valuelist & singleEditClick = true: [https://support.servoy.com/browse/SVYX-583](https://support.servoy.com/browse/SVYX-583)  
It has been fixed on version 2023.6 ( needs also the updated grid component package ).  
You should try on 2023.6

If you can still replicate the issue i suggest you report it at [support.servoy.com](http://support.servoy.com) describing the step to reproduce, possibly you can attach a sample solution demonstrating the issue.

Regards,  
Paolo

---

<div class="post-metadata">

**Author:** ![rieder](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/rieder/32/4950_2.png) [@rieder](https://forum.servoy.com/u/rieder)\
**Post date:** [June 28, 2023, 2:24pm UTC](https://forum.servoy.com/t/valuelist-displays-former-values/21022/3 "2023-06-28T14:24:36Z")

</div>

Dear Paolo

Thank you for the answer. I can confirm, that the problem is related to singleClick = true: When I set the grid to singleClick = false and hook onCellClick event, where I load the valuelist and **then** edit the cell, it works. I’ll try, if Servoy 2023.06 will have fixed this issue.

Thanks again and best regards  
Birgit
