Hello,
I have a ComboBoxItem with a OptionDataSource. My question is if I can add a new record to the ComboBoxItem from code, when a user click in a button.
I not found any method in ComboBoxItem for it.
Regards.
Francisco.
Hello,
I have a ComboBoxItem with a OptionDataSource. My question is if I can add a new record to the ComboBoxItem from code, when a user click in a button.
I not found any method in ComboBoxItem for it.
Regards.
Francisco.
Hello,
Some people have any sugesstion or idea about how to do ?
Regards.
Francisco.
hello,
if you call addData on your datasource to add your new value and then fetchData on the SelectItem you would have the new value added in the item ![]()
Regards
Hello,
Thanks for reply.
I know, but i not want to add to DataSource. Only to drop down ComboBoxItem.
Any other sugesstion ?
Regards.
Francisco.
olinsha is correct. If you don’t want to modify the DataSource, you can create a distinct DataSource that has identical setup but just a different ID.
Alternatively, you can fully load the dataset and call setValueMap() each time you want to change the set of options.