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

Access to other fields on record selected through combo box

2 Answers 58 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Don
Top achievements
Rank 1
Don asked on 07 Nov 2012, 06:16 PM
I need to be able to access other fields on the same record that was just selected through the combo box - in the code behind is where I want to access the other fields.  I have a record - an employee record, the fields are first name, last name, phone number, address, dob, and email address.  The combo box displays and I selected the record by last name - after selecting the record by last name, i want to display the address on the screen.  ( I am using C# mostly, an explanation in either C# or VB would be great).

Thanks in advance.

Donnie


wow.

2 Answers, 1 is accepted

Sort by
0
Nencho
Telerik team
answered on 12 Nov 2012, 02:07 PM
Hello Don,

I can suggest you to use the Attributes collection of the RadComboBoxItem, where you could store the needed fields from the DataSource. Here you could find our demo, where a similar functionality is implemented. In the source code of the demo it is demonstrated how you could store several fields from the DataSource in the Attributes and display them when needed.


All the best,
Nencho
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Don
Top achievements
Rank 1
answered on 12 Nov 2012, 02:40 PM
Thank you Nencho.  Appreciate Telerik's promptness in responding.  Have a great day.
Donnie
Tags
ComboBox
Asked by
Don
Top achievements
Rank 1
Answers by
Nencho
Telerik team
Don
Top achievements
Rank 1
Share this question
or