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
245
Checking Selected Value When DropDownList control loses Focus
posted

Hi, I'm wondering if there is anyway to check the value of a WebDropDownList control on the client side when it loses focus?  I've tried implementing logic on the Focus client side event but it doesn't fire when user changes focus on the control.


I'm have a radio button list inside an updatepanel and depending on the value that is selected from this radio button, the WebDropDown list control is populated with specific values. I need to make sure that a value is selected off of the WebDropDown list before the user can proceed on the form.

 

Any help would be greatly appreciated.

 

Thanks.

Parents
No Data
Reply
  • 24671
    Suggested Answer
    posted

    you can use the Blur client-side event to do that. In the handler for that event, you can do any of the below :

    sender.get_currentValue(); // current input value text 

    sender.get_selectedItemIndex();

    sender.get_selectedItem();

    Hope it helps. Thanks,

    Angel 

Children