Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

SelectItem DataSource refresh problem

$
0
0
Hello,

So I have a SelectItem with a binded datasource, with the id as the valuefield and name as the displayfield. I then want to change the name of the currently selected record. I basically create a new datasource with the necessary changes, use clearValue() and set the new datasource, along with setValue(id_of_changed_record). The dropdown is populated alright, with the new name, but whenever I click on the newname in the dropdown, the displayed name would be the old one. A refresh solves this problem, but I would rather have it work automatically ofc. Any suggestions?

Thanks.

Viewing all articles
Browse latest Browse all 4756

Trending Articles