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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Dinamically change value property

Thread ID:





128453 Jan 24,2017 03:46 AM UTC Jan 25,2017 06:16 AM UTC ASP.NET MVC 1
Tags: AutoComplete
Daniel Carvalho
Asked On January 24, 2017 03:46 AM UTC

I would like to know if it's possible to dynamically change the value property of a control (Autocomplete or combobox) based on information that the user typed on a previous field.
Like when you autofill your address after you put your name on some browsers.

Rekha J [Syncfusion]
Replied On January 25, 2017 06:16 AM UTC

Hi Daniel,   
Thanks for Contacting Syncfusion Support.   
To achieve your requirement, we suggest that you use the “selectValueByKey” method. In this method, you can dynamically select the value based on the key field. In our sample, you can select the name value from the first Autocomplete. In FocusOut event, you can dynamically select the address of the selected value by using the selectValueByKey()method.   
Please refer to the below code snippet to achieve this.   
    function focusout(e) {   
        var obj = $("#selectcar").ejAutocomplete("instance");   
        //dynamically change value by using previous field   
For your reference, please download the sample in the link below:   
Please refer to our online API reference documentation for Autocomplete:   


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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