Autocomplete Textbox

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


3 Replies

VA Valli Syncfusion Team August 1, 2007 06:29 AM UTC

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


RS Richard Slauenwhite August 2, 2007 02:11 PM UTC

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.


VA Valli Syncfusion Team August 3, 2007 05:48 AM UTC

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

Loader.
Up arrow icon