Hello,
How to add blank item to the top of Databind WebDropDown sothat user can left it blank and how to disable auto open of WebDropDown
Thank you for your reply.
Hi ThuyNga Nguyen,
Please feel free to contact me if you have any further questions regarding this matter.
Hello ThuyNga Nguyen,
If at all possible I would suggest that you keep the blank item in your datasource. The WebDropDown is being opened after an item is inserted as an AJAX callback is occurring in order to add that item and the dropdown list is being opened on the resulting response.
Please do not hesitate to contact me if you have any questions.
Thank you for your reply. My WebDropDown is auto opening when i use initialize event to add a blank item to it. If i add blank item to my datasource, it doesn't happen.
Thank you for posting in the community.
In this scenario I would suggest adding an item to your datasource where the text field used for WebDropDown's item is empty. As for disabling the dropdown's auto-opening I would need some clarification regarding the circumstances under which the control is being opened in order to research ways to prevent it.
Please do not hesitate to contact me with any questions.