Hi All
I am populating combobox using web api 2 odata service using dojo, But here i want to know how to get selected 'id'.
Please help me
Hi Thejus, I can't tell u how happy i am, Thank you so so much
Hello Sadanandachar,
I usually directly use the dropdown's item property. It will return the object associated with the selected index.
var selectedItem = this._queryNameDropDown.item;
id = selectedItem.id;
Hope this was helpful.
Thejus
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.