This question is locked. New answers and comments are not allowed.
Hi There,
The autocomplete doesn't seem to support a SelectListItem type binding like the other combobox controls do. E.g. the following is supported as JSON response:
["Joe Blogs","Jane Blogs"]
The following isn't:
Is there a work around I'm missing? Or when is Telerik planning on supporting this?
Cheers,
Sandy.
The autocomplete doesn't seem to support a SelectListItem type binding like the other combobox controls do. E.g. the following is supported as JSON response:
["Joe Blogs","Jane Blogs"]
The following isn't:
[{"Value":"ee6115a1-0446-4a99-a8c4-b7187bf2a410","Text":"Joe Blogs"},{"Value":"cc02e488-fd88-43bc-82da-bfb23f997514","Text":"Jane Blogs"}]
Is there a work around I'm missing? Or when is Telerik planning on supporting this?
Cheers,
Sandy.
7 Answers, 1 is accepted
0
Hello Sandy,
AutoComplete UI component supports only AJAX binding to collection of SelectListItem (DropDownItem) objects. The autocomplete will post to the server only the content of the input element. Hence Value of the SelectListItem will not be posted back.
Here is a simple test project which shows how to bind AutoComplete UI component to list of SelectListItem objects.
Best wishes,
Georgi Krustev
the Telerik team
AutoComplete UI component supports only AJAX binding to collection of SelectListItem (DropDownItem) objects. The autocomplete will post to the server only the content of the input element. Hence Value of the SelectListItem will not be posted back.
Here is a simple test project which shows how to bind AutoComplete UI component to list of SelectListItem objects.
Best wishes,
Georgi Krustev
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0
Sandy
Top achievements
Rank 1
answered on 02 Dec 2010, 12:45 AM
Hi Georgi ,
Actually we needed to post the value as well using the autocomplete.
When is Telerik planning on supporting this?
Cheers,
Sandy.
Actually we needed to post the value as well using the autocomplete.
When is Telerik planning on supporting this?
Cheers,
Sandy.
0
Hello Sandy,
If you need to post Value property, you should use ComboBox UI extension. AutoComplete does not store Value property of the selected item, because it is attended to be a textbox control with a suggestion list. Currently. we don not have plans to support storing of the selected Value.
Kind regards,
Georgi Krustev
the Telerik team
If you need to post Value property, you should use ComboBox UI extension. AutoComplete does not store Value property of the selected item, because it is attended to be a textbox control with a suggestion list. Currently. we don not have plans to support storing of the selected Value.
Kind regards,
Georgi Krustev
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0
Skip Harris
Top achievements
Rank 1
answered on 12 Jan 2011, 10:09 PM
I agree that the AutoComplete box needs to post the Value of the SelectListItem (as opposed to the Text). The ComboBox part will not work for us because we need the ability to have multiple selections. The AutoComplete box is not usable for us until it will post the Value. Please consider this for a future release.
Thanks!
Skip
Thanks!
Skip
0
Mayank
Top achievements
Rank 1
answered on 29 Feb 2012, 07:39 AM
Just wanted to check if the auto complete can post Value (as opposed to Text)?
Wondering if there have been any enhancements.
Wondering if there have been any enhancements.
0
Tomas
Top achievements
Rank 1
answered on 16 Mar 2012, 10:58 PM
Just drop by, to say that we think value should be posted back on autocomplete.
Regards,
Tomas
Regards,
Tomas
0
Sammy
Top achievements
Rank 1
answered on 27 Sep 2012, 12:42 PM
It would be very useful to use the autocomplete to pass the value similar to a dropdown instead of just a text input.