csDropDownList and ItemIndex in comboboxes not working?
Posted: Mon Mar 22, 2010 8:43 am
Hi,
I'm having problems selecting the default item in the combobox control with csDropDown style.
I want the user to choose one of the predefined values from the combobox, so:
1. I create a combobox
2. I provide the values: One, Two, Three
3. I set the ItemIndex to 0.
Until now everything works fine. The default item (One) is selected automatically. The combobox however allows the user to input some other value, not on the list.
4. I'm setting the style to csDropDownList and... setting the ItemIndex to 0 doesn't work anymore. After the dialog shows up, no item is selected.
Did I find a bug? Or am I doing something wrong here?
Best regards,
adi
I'm having problems selecting the default item in the combobox control with csDropDown style.
I want the user to choose one of the predefined values from the combobox, so:
1. I create a combobox
2. I provide the values: One, Two, Three
3. I set the ItemIndex to 0.
Until now everything works fine. The default item (One) is selected automatically. The combobox however allows the user to input some other value, not on the list.
4. I'm setting the style to csDropDownList and... setting the ItemIndex to 0 doesn't work anymore. After the dialog shows up, no item is selected.
Did I find a bug? Or am I doing something wrong here?
Best regards,
adi