Access to other fields on record selected through combo box

3 posts, 0 answers
  1. Don
    Don avatar
    3 posts
    Member since:
    Jun 2012

    Posted 07 Nov 2012 Link to this post

    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. Nencho
    Admin
    Nencho avatar
    1864 posts

    Posted 12 Nov 2012 Link to this post

    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.
  3. Don
    Don avatar
    3 posts
    Member since:
    Jun 2012

    Posted 12 Nov 2012 Link to this post

    Thank you Nencho.  Appreciate Telerik's promptness in responding.  Have a great day.
    Donnie
Back to Top