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

How to maintain value in autocomplete and how to obtain selected value in autocomplete

Thread ID:

Created:

Updated:

Platform:

Replies:

117206 Sep 3,2014 01:47 PM UTC Sep 4,2014 09:55 AM UTC ASP.NET Web Forms 1
loading
Tags: AutoComplete
Roimer Machacón Otero
Asked On September 3, 2014 01:47 PM UTC

Hi, We're using the autocomplete element, 

So when in the web page make a postback, the selected value in the autocomplete disappear.

We also have another question, how to obtain the selected value in the autocomplete for pass in code behind a variable?

Ezhil S [Syncfusion]
Replied On September 4, 2014 09:55 AM UTC

Hi Nestor,

 

Thank you for using Syncfusion products.

 

We are unable to reproduce the reported issue with AutoComplete control on maintaining the value after post back. The issue may arise when “ej.webform.min.js” script is not referred in your project. Please ensure whether all the references for adding ASP.NET controls added in your application. In order to get the value of AutoComplete from code behind, you can use “Value” attribute that holds the value of the control. We have also attached a sample to demonstrate the requested scenario. Please refer the following code snippet,

<code>

[CodeBehind]

protected void btn_Click(object Sender, Syncfusion.JavaScript.Web.ButtonEventArgs e)

        {

            this.ACtext.Text = this.AutoComplete.Value;

        }

Note: “AutoComplete” is the ID of the Control used in the sample

</code>

For further reference, check the following UG link on adding references to the application:

http://help.syncfusion.com/ug/js/documents/createmanually1.htm

Please let us know if you have further queries.

 

Regards,

Ezhil S


Attachment: Autocomplete_f117206_c56fac0b.zip

CONFIRMATION

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.

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

;