Hello,
If you need to add new rows from JavaScript, look here:
http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?ArticleID=7700
I recommend you to have a look in three places:
a) Infragistics knowledge base
http://devcenter.infragistics.com/Support/KnowledgeBaseResults.aspx?type=Full&query=webcombo&articletypes=0&age=0&sort=LastModifiedDate&samplesonly=0
b) The old Infragistics forum
http://forums.archive.infragistics.com/?heirarchy=infragistics.products.netadvantage.aspnet
c) Have a look in the help documentation file installed on your computer. Search the JavaScript functions that add new rows to an UltraWebGrid.
This is because the webCombo uses an UltraWebGrid for its dropdown portion.
Adding rows to the WebCombo is quite easy. All you need to do is add a few columns, and then add a few rows. Below is a simple snippet of what you will have to do.
{
UltraGridColumn col1 = new UltraGridColumn();
col1.Header.Caption = "Column1";
UltraGridColumn col2 = new UltraGridColumn();
col2.Header.Caption = "Column2";
UltraGridColumn col3 = new UltraGridColumn();
col3.Header.Caption = "Column3";
UltraGridRow row = new UltraGridRow();
this.WebCombo1.Rows[i].Cells[0].Value = i.ToString();
}
this.WebCombo1.DataValueField = "Col1";