title: Populating RadComboBox using for loop
body: <p>Hi I have RadComboBox where I am trying to populate the dropdown options using for loop...</p>
  
  <pre><code> int last=20;
   int lastitem;
   for (int i=1; i &lt; last; i++)
                  {
                      lastitem = i + 1;
                      categoriesCombo.Items.Add(new RadComboBoxItem(i.ToString()+ "-"+lastitem.ToString()));
                  }
  </code></pre>
  
  <p>Problem with this code is that it only displays one value the first one. Please let me know how to fix it so it can populate all the items in drop down in for loop. Thanks </p>