Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
325
ComboBoxTool
posted

My valuelist items are not showing up in the dropdown list of the comboboxtool.  This is how I have added items to the list

ComboBoxTool tool = new ComboBoxTool();

ValueList valueList = new ValueList();

valueList.ValueListItems.Add(1, "One");

valueList.ValueListItems.Add(2, "Two");

foreach(TestObject testObject in testObjectList)

{

    valueList.ValueListItems.Add(testObject.Id, testObject.Text);

}

comboBoxTool.ValueList = valueList;

It doesn't make sense to me but for some reason items "One" and "Two" show up in the drop down list but none of the items added through the for loop show up. 

Parents
No Data
Reply Children
No Data