The dataProvider setter in DropDownList has the following code:

                for (i = 0; i < n; i++) {
                    opt = document.createElement('option') as HTMLOptionElement;
                    if (lf)
                        opt.text = value[i][lf];
                    else
                        opt.text = value[i];
                    dd.add(opt, null);
                }

Basically, it makes the assumption that the dataProvider is an index-accessible 
object. This is not the case if the dataProvider is a collection. In that case, 
the code should be something like this:

                        opt.text = value.getItemAt(i)[lf];
                    else
                        opt.text = value.getItemAt(i);

I’m not sure of the best way to generalize this.

Thoughts?
Harbs

Reply via email to