Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
655
WebDropDown EnableCustomValues AutoPostBack
posted

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

Parents
No Data
Reply
  • 49378
    posted

    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.

Children