Oct 01, 2012, 2:04 PM
Combo default value
Hello, I have problem set default value for combo in markup here is my code:
first two raise error, text don't do nothing.
I also try add selecteditems to markup, but then BusinessContractTypeId.SetValue(1) from codebehind don't work
When I set value from codebehind it works as expected.
Thanks for help
<ext:ComboBox id="BusinessContractTypeId" runat="server" FieldLabel="Typ" AllowBlank="false"
ForceSelection="true">
<Items>
<ext:ListItem Value="0" Text="Type A" Mode="Raw" />
<ext:ListItem Value="1" Text="Type B" Mode="Raw" />
<ext:ListItem Value="2" Text="Something else" Mode="Raw" />
</Items>
</ext:ComboBox>
I try without luck: Value="0", RawValue="0" and Text="0"first two raise error, text don't do nothing.
I also try add selecteditems to markup, but then BusinessContractTypeId.SetValue(1) from codebehind don't work
When I set value from codebehind it works as expected.
Thanks for help