Re: [dabo-users] Setting DropdownList.Value exception

Author: Miguel Lopes

Posted: 2009-07-26 at 18:40:12

On Sun, Jul 26, 2009 at 11:30 PM, Ed Leafe<ed@leafe.com> wrote:

> On Jul 26, 2009, at 5:01 PM, Miguel Lopes wrote:

>

>> To get around this I'll code the form by hand, which I expect will

>> raise no issues. But I have the feeling there is a bug lurking here.

>

>

> =A0 =A0 =A0 =A0This is an issue that we've come across several times, and=

have never

> come up with an acceptable resolution. Basically, the list must be

> populated before anything else happens to it, but the data binding

> events try to set values in the list before the list is populated, and

> so we get that error.

>

> =A0 =A0 =A0 =A0Paul, I'm wondering - could we trap this particular error,=

set a flag

> in the object, and then add this to the end of the event loop using a

> setAfter call? The flag would enable us to avoid infinite loops if an

> attempt to set an invalid value was made, but would avoid erroring out

> because of the wrong event order.

>

>

> -- Ed Leafe

Txs for the clarification Ed.

Miguel

©2009 Miguel Lopes