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.

Autocomplete Textbox

Thread ID:

Created:

Updated:

Platform:

Replies:

66608 Jul 31,2007 11:13 AM Aug 3,2007 01:48 AM ASP.NET Web Forms (Classic) 3
loading
Tags: Tools
Richard S
Asked On July 31, 2007 11:13 AM

Am I correct that the Autocomplete textbox does not store a primary key and does not support the concepts of datavalue and datatext?


Valli [Syncfusion]
Replied On August 1, 2007 02:29 AM

Hi Richard,

Thank you for your interest in Syncfusion Products.

The Autocomplete Textbox supports only the 'DataKeyField' which will help you to bind the specified column value to the control.

There is no support for the primary key, datavalue and datatext field in the Autocomplete Textbox.

Could you please let us know your usage scenario? So that we will analyze further on support to the above properties and file a feature request.

Regards,
Valli

Richard Slauenwhite
Replied On August 2, 2007 10:11 AM

Usage scenario

Pick a State, Pick a city and pick a Zip.

Three web service calls that populate three autocomplete text boxes with cascading values.

Normally i'd do this with javascript and use the primary key for the web service call rather than the 'text' field itself.

Valli [Syncfusion]
Replied On August 3, 2007 01:48 AM

Hi Richard,

Thank you for your update.

There is no any separate property to define primary key in the AutoComplete Textbox.

But the functionality of the Primary key can be achieved. The below sample link helps you to do the same.

http://websamples.syncfusion.com/samples/Tools.Web/5.1.0.51/Forum-66608/main.htm

In the sample 'AutoCompleteTextBox' is populated with the values of the XML file. The sample check for the unique name for the field 'FirstName'. The List binded to the AutoCompleteTextBox is checked for the repeated values, based on the result the item gets added to the AutoCompleteTextBox.

Please let us know if this helps you.

Regards,
Valli

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.

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.

;