Open SachinSabat opened 7 years ago
I am unable to pass any data structure to datasource eg, selectPayment.datasource = elements[i].customer_name
I facing same issue, I am getting array from server and trying to bind it to data source as:
dropDown.dataSource = myArray
But the dropDown isn't showing me any data. But when is bind the static array ,it is showing me the data.
Just call some function, which will get new data to the DropDown, and assign new array like DropDown.dataSource = [your_array_variable] (or assign an old array, but second time)
Hello everyone,
DropDown.dataSource
is not made to support changes like myDropDown.dataSource[1] = "newValue"
You have to assign a new array of String
s each time myDropDown.dataSource = myArrayWithNewValues
. This should work.
Please provide some example for it.