We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Is it possible to differentiate the user selection or programmatically selection of the items in the DropDownList?

Solution

Yes, It’s possible to differentiate the selection of items in DropDownList using isInteraction” argument in the select event of DropDownList.

 

If the value of “isInteraction” is true , then the item has been selected by user interaction. Otherwise it has been selected by properties or methods such as “selectItemByText”, “selectItemByValueor “selectItemByIndicesin the DropDownList.

 

Initialize the DropDownList as follows

HTML

 

Upon selecting the items in the DropDownList, the client side event “select” will be triggered, in that check whether the value of isInteraction argument is true or not. If the value is true, the item has been selected by user(selected through the mouse hover).

 

Javascript

 

Article ID: Published Date: Last Revised Date: Platform: Control:
7030 07/29/2016 07/29/2016 JavaScript ejDropDownList
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon