Hi!
I am using WebDropDown version 14.1.20141.2150. In my scenario, I have one WebDropDown like this:
Step 1: When I enter new value into input box, for example "hoa qu", the WebDropDown filter and show Container with values:
"Bệnh viện đa khoa Quảng Ngãi"
"Hoa quả sơn"
Step 2: Then I select "Hoa quả sơn" value, the input box of WebDropDown get this value properly.
But when I go back step 1 again, I select "Bệnh viện đa khoa Quảng Ngãi", the input box of WebDropDown cannot get this value. Please help me out of this.
Thank you very much and best regards, Hương.
Hello Dinh,
I've tested your sample and was able to reproduce the issue. I assume that it comes from the SelectedItemIndex property that you're setting inside of LoadHospital() method which is called on every postback and since at the top of this code you're creating a new row where the HospitalID is set to 0, hence the selected item will always points to this new row which apparently prevents some further selection actions. If I understood your idea properly, you want WebDropDown to load with empty input field initially. If this is the case, then you can use CurrentValue="" property of the WebDropDown for this purpose. I'm attaching your sample with some modifications for your reference.
Please let me know if you have any further questions.
Sincerely,
Tsanna
Hi Tsanna,
Thank u very much for quick reply. I am sorry for late reply to you. I have tested your attached project and it resolved my scenario.
Best wishes to you, Hương.
Thank you for your feedback.
If you need further assistance, please let me know.
Regards,