Hi,
I have 3 WebDropDowns on my page in an update panel all with EnableCustomValues=false. After the user selects an item from the first dropdown a postback occurs and the next dropdown is populated with relevant data. This works fine if the user selects an item using the dropdown button, the problem I am having though is that if the user starts to type in the dropdown a postback occurs before something has been selected. I have tried different settings using the AutoPostBackFlags but don't seem to be able to stop this postback happening before a complete value has been selected. Can you please advise on how I might achieve this?
Many Thanks
Hello wakefl,
Thank you for posting in the community.
What may be hapenning here is that when typing in the dropdown's input field, the selectionChanging/ValueChanging clientside events are being fired initiating a postback to load the items into your cascading doprodowns. I suggest that you set the DisplayMode of your WebDropDowns to DropDownList in order to disallow typing in the input field (keyboard item navigation will still be possible).
Please let me know if this helps.
Hi Peter,
Thanks for your quick response. I have tried the DropDownList and would be happy to use it but when I use the DropDownList it wipes out the CurrentValue which I set to 'Please select' and shows the first item returned from the datatable. Is there a way to use CurrentValue when using the DropDownList DisplayMode?
Thanks