This is a migrated thread and some comments may be shown as answers.

how to get RadAutoCompleteBox DataValueField value from clientside?

9 Answers 1145 Views
AutoCompleteBox
This is a migrated thread and some comments may be shown as answers.
Muhammad
Top achievements
Rank 1
Muhammad asked on 16 Oct 2013, 09:26 AM



I need DataValueField value from clientside. how to retieve RadAutoCompleteBox   DataValueField value from clientside? 

9 Answers, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 21 Oct 2013, 07:40 AM
Hello Muhammad,

Thank you for contacting Telerik Support.

If I understand correctly, your requirement is to get the RadAutoCompleteBox value (the selected items). The selected items in the control can be found in the Items collection. Each item contains text and value, so you can get both the display and the value member.
private void Form1_Load(object sender, EventArgs e)
{
    this.customersTableAdapter.Fill(this.nwindDataSet.Customers);
 
    this.radAutoCompleteBox1.AutoCompleteDataSource = bindingSourceCustomers;
    this.radAutoCompleteBox1.AutoCompleteDisplayMember = "ContactName";
    this.radAutoCompleteBox1.AutoCompleteValueMember = "CustomerID";
}

string itemText = this.radAutoCompleteBox1.Items[0].Text;
object itemValue = this.radAutoCompleteBox1.Items[0].Value;

If it is not the exact scenario that you are looking for, I would really appreciate more details about the specific requirements.

I hope this information helps. Should you have further questions, I would be glad to help.

Regards,
Desislava
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Ruben
Top achievements
Rank 1
answered on 24 Jun 2016, 11:48 PM

.Items not exist

 

0
ghini
Top achievements
Rank 2
answered on 25 Jun 2016, 11:18 AM
try with radAutoCompleteBox1.Entries[0].Value
0
Ruben
Top achievements
Rank 1
answered on 25 Jun 2016, 10:14 PM
Thanks, I will try
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 27 Jun 2016, 10:04 AM
Hello Ruben,

Thank you for writing. 

I have attached a sample project for your reference demonstrating how to retrieve the value of RadAutoCompleteBox. Note that it is applicable to the latest version.

I hope this information helps. Should you have further questions I would be glad to help.

 Regards,
Dess
Telerik
Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.
0
Ciupaz
Top achievements
Rank 2
Veteran
answered on 25 Jun 2020, 07:53 AM
In the Click event of a button, I have this code: 

Dim selectedClients As New List(Of String)

Dim selectedClients2 As AutoCompleteBoxEntryCollection
selectedClients2 = acbClients.Entries

(acbClients is the ID of my telerik:RadAutoCompleteBox).

How can I populate the List "selectedClients" with all the items selected keys? 

L. 
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 25 Jun 2020, 09:06 AM

Hi, Luigi,

I would like to note that this forum is related to RadAutoCompleteBox from the Telerik UI for WinForms suite. However, I suspect that you are not using the WinForms product as we discussed yesterday in another forum thread.

Feel free to post any technical inquiries in the relevant forum: https://www.telerik.com/forums  Thus, the appropriate community would gladly assist you.

Thank you for your understanding.

 

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Ciupaz
Top achievements
Rank 2
Veteran
answered on 25 Jun 2020, 09:35 AM

I'm still sorry Dess.
I thought the AutoCompleteBox concepts/features were the same for both Windows Forms and Web Forms.

 

L.

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 25 Jun 2020, 10:01 AM

Hi, Luigi,

Please have in mind that the different Telerik products have different internal implementation of their controls considering the platform specifics and requirements that are needed to be met. That is why it is recommended to post technical questions in the proper product's forum. Thus, you will get the most accurate reply. 

However, if you have any questions regarding the Telerik UI for WinForms suite, I would be glad to assist.

Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
AutoCompleteBox
Asked by
Muhammad
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Ruben
Top achievements
Rank 1
ghini
Top achievements
Rank 2
Ciupaz
Top achievements
Rank 2
Veteran
Share this question
or