ListBox From SQL Shows Top Entry Selected
I have a form which uses a sql statement to generate a list box. But during runtime, the top entry of the list box is selected by default.
How do I remove this selected item? If the user does not want to select anything from that particular listbox, the default top entry comes through as selected.
Walter
0
-
By default the first item is always selected.
If the selection mode is single, the user can select a different item.
If the selection mode is multiple, the user can click on the first item to deselect it.
If the selection mode is extended, the user can ctrl+click on the first item to deselect it.
You can also add an extra (first) item to your listbox and label it as "No selection" or something like that.0 -
Moring Nico,
Appreciate your feedback, yet again.
I will give your suggestions a try.
Thank you....Walter0 -
Nico and Walter, this is great - for an ArcGIS Server Feature Service based listbox, it appears that the first item isn't automatically selected, but when one does so based on a DataItem list, the first item is selected. Do you know how to get the listboxes to behave in the same manner (i.e. neither has anything automatically selected" 0 -
As far as I know the first item is always selected. 0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
4 kommentarer