Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8060857
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T10:08:14+00:00 2026-06-05T10:08:14+00:00

Is it possible to show multiple columns and headers inside of a combo box/dropdown

  • 0

Is it possible to show multiple columns and headers inside of a combo box/dropdown list in asp.net and show related columns values, for an example, if I click on a country name then it should show me all the cities for that country and clicking on city name should show me all the related places.

Is there any third part control available? I have checked telerik and they have combo box with multiple columns but not with related values.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T10:08:17+00:00Added an answer on June 5, 2026 at 10:08 am

    I hope this will help you to get started.

    enter image description here

    <telerik:RadComboBox ID="RadComboBox1" runat="server" AutoPostBack="True" 
        OnSelectedIndexChanged="RadComboBox1_SelectedIndexChanged">
        <ItemTemplate>
            <table width="100%">
                <tr>
                    <td>
                        <%# Eval("Name") %>
                    </td>
                    <td>
                        <%# Eval("Population")%>
                    </td>
                </tr>
            </table>
        </ItemTemplate>
    </telerik:RadComboBox>
    <telerik:RadComboBox ID="RadComboBox2" runat="server" AutoPostBack="True" 
        OnSelectedIndexChanged="RadComboBox2_SelectedIndexChanged">
        <ItemTemplate>
            <table width="100%">
                <tr>
                    <td>
                        <%# Eval("Name") %>
                    </td>
                    <td>
                        <%# Eval("Population")%>
                    </td>
                </tr>
            </table>
        </ItemTemplate>
    </telerik:RadComboBox>
    <telerik:RadComboBox ID="RadComboBox3" runat="server">
        <ItemTemplate>
            <table width="100%">
                <tr>
                    <td>
                        <%# Eval("Name") %>
                    </td>
                    <td>
                        <%# Eval("Population")%>
                    </td>
                </tr>
            </table>
        </ItemTemplate>
    </telerik:RadComboBox>
    
    public class Country
    {
      public int Id { get; set; }
      public string Name { get; set; }
      public int Population  { get; set; }
    }
    
    public class State
    {
      public int Id { get; set; }
      public int CountryId { get; set; }
      public string Name { get; set; }
      public int Population { get; set; }
    }
    
    public class City
    {
      public int Id { get; set; }
      public int StateId { get; set; }
      public string Name { get; set; }
      public int Population { get; set; }
    }
    
    public List<Country> Countries
    {
      get
      {
        return new List<Country>
          {
            new Country {Id = 1, Name = "United States", Population = 1000},
            new Country {Id = 2, Name = "Canada", Population = 2000},
            new Country {Id = 3, Name = "Mexico", Population = 3000}
          };
      }
    }
    
    
    public List<State> States
    {
      get
      {
        return new List<State>
          {
            new State {Id = 1, CountryId = 1, Name = "California", Population = 100},
            new State {Id = 2, CountryId = 1, Name = "New York", Population = 200},
            new State {Id = 3, CountryId = 2, Name = "Quebec", Population = 300},
            new State {Id = 4, CountryId = 2, Name = "Ontario", Population = 400}
          };
      }
    }
    
    
    public List<City> Cities
    {
      get
      {
        return new List<City>
          {
            new City {Id = 1, StateId = 1, Name = "Los Angeles", Population = 10},
            new City {Id = 2, StateId = 1, Name = "San Diego", Population = 20},
            new City {Id = 3, StateId = 1, Name = "San Francisco", Population = 30},
            new City {Id = 4, StateId = 1, Name = "San Joe", Population = 40},
            new City {Id = 5, StateId = 2, Name = "New York", Population = 50},
            new City {Id = 6, StateId = 2, Name = "Paterson", Population = 60},
            new City {Id = 7, StateId = 2, Name = "Newark", Population = 70},
            new City {Id = 8, StateId = 2, Name = "Smithtown", Population = 80},
          };
      }
    }
    
    protected void Page_Load(object sender, EventArgs e)
    {
      if(!IsPostBack)
      {
        RadComboBox1.DataSource = Countries;
        RadComboBox1.DataValueField = "Id";
        RadComboBox1.DataTextField = "Name";
        RadComboBox1.DataBind();
    
        RadComboBox1.Items.Insert(0, new RadComboBoxItem("Select Country", ""));
      }
    }
    
    protected void RadComboBox1_SelectedIndexChanged(
      object sender, RadComboBoxSelectedIndexChangedEventArgs e)
    {
      RadComboBox2.Items.Clear();
      RadComboBox3.Items.Clear();
    
      int countryId;
      if (Int32.TryParse(e.Value, out countryId))
      {
        RadComboBox2.DataSource = States.Where(s => s.CountryId == countryId);
        RadComboBox2.DataValueField = "Id";
        RadComboBox2.DataTextField = "Name";
        RadComboBox2.DataBind();
    
        RadComboBox2.Items.Insert(0, new RadComboBoxItem("Select State", ""));
      }
    }
    
    protected void RadComboBox2_SelectedIndexChanged(
      object sender, RadComboBoxSelectedIndexChangedEventArgs e)
    {
      RadComboBox3.Items.Clear();
    
      int stateId;
      if (Int32.TryParse(e.Value, out stateId))
      {
        RadComboBox3.DataSource = Cities.Where(c => c.StateId == stateId);
        RadComboBox3.DataValueField = "Id";
        RadComboBox3.DataTextField = "Name";
        RadComboBox3.DataBind();
    
        RadComboBox3.Items.Insert(0, new RadComboBoxItem("Select City", ""));
      }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to have multiple drop down lists in asp.net mvc? What I'm
Is it possible to show (pop-up) a message box with an input field in
Is it possible to show a tooltip without making a link? For example, I
Is it possible to program multiple UIAlertViews for one IBAction in Xcode to show
Is it possible to show multiple lines of text in grid cells using the
Is it possible and how to implement one textfield with multiple values in drupal
Is it possible to show the date/time of viewing/printing of a PDF document? I
Is it possible to show line numbers in the Developer Center when editing xslt
Is it possible to show the typical iPhone maps annotation/callout bubble (MKAnnotation), on something
Is it possible to show any part of image in img tag (with pixels)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.