Removing an item from a listbox

N

NewGuy25

I have a list box that uses a value for display with an underlying id number.
I can remove an item in the list using code by editing the data object that
acts as the source for that list box. (using
parentNode.removeChild(listItemNode); ). When I do this, the entry for that
item is replaced by the underying ID number for that item until the user
selects another entry in the list (at which time the deleted entry disappears
completely). My question is, how do I get the list to refresh automatically
so that the deleted entry disappears completely as soon as the deletion is
done?
 
M

Michelle

Set the text value of the node the list is bound to to an empty string. The
reason the id is still showing is because the value still exists in the node
until the user selects a different value.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top