Notifications
Clear all

[Closed] updating dropdownlist before running event

Heyo all,

I was working on a script that has a variable number of entries in a dropdownlist control where I have it run a few functions as soon as the user selects an item from the dropdownlist.

The problem is that these functions update controls that can be hidden by that long dropdownlist after a selection is made and the control doesn’t update its expanded list until after the event fully runs

does anyone have an idea how to get the dropdownlist to minimize before running the functions I call in my event? or another elegant solution to this problem?

lemme know if I’m not being clear

2 Replies
 lo1

I’m not sure I fully understand your problem, but the first two things I would try are:

  1. as the first line of your event, try to reduce the dropdownlist .height property to 0, and afterwards return it to normal height.

  2. use a dotnet combobox cotnrol for a dropdownlist and set its .droppedDown property to false before running the rest of the event.

ah you’re a champ lo!

I did your first suggestion and that seems to do the trick
thanks!