Aug 04, 2010, 8:20 PM
ComboBox SelectedItem property during Page_Load returns empty.
Hi guys, I have a simple ComboBox with 3 items and the SelectedIndex property is pre-defined in the markup, when the page loads (Page_Load) and I query the SelectedItem it returns an empty item, if I use the same code in a button for example it returns the correct SelectedItem, isn't the ComboBox ready to query when the page loads or it could be a bug?
Thank you
Thank you
ext:ComboBox ID="ComboBox1"
runat="server"
Editable="false"
SelectedIndex="2" Width="250">
<Items>
<ext:ListItem Text="Item 1" Value="Item 1" />
<ext:ListItem Text="Item 2" Value="Item 2" />
<ext:ListItem Text="Item 3" Value="Item 3" />
</Items>
</ext:ComboBox>