Hello all,
I got exactly the same behaviour:
http://www.telerik.com/community/forums/aspnet-ajax/combobox/combobox-selectedvalue-not-working.aspx#977218
The combo is part of a few controls being loaded dynamically, a RadNumericTextBox, a RadDatePicker and a RadComboBox
All works fine. Data is loaded like ecpercted. Then, I change the sel item of the combo. On postback controls are loaded (init) with old values(thats ok, from the init event, before viewstate is placed), then the selectedIndexChanged is triggered (fine), the controls are rebuilded, and I can see the right values being passed to the combo (and the others) but when done, the selectedvalue is trhe prev value and not the value I just selected while the other changes are still correct...
This all happens in a single page app whith dynamically loaded usercontrols.
' Text input
for
figure source
Dim rcb As New Telerik.Web.UI.RadComboBox
With rcb
.ID =
"Input_FOID"
& FOIdx &
"_Source"
.Items.Clear()
.Items.Add(New Telerik.Web.UI.RadComboBoxItem(
"(Onbekend)"
,
"(Onbekend)"
))
.Items.Add(New Telerik.Web.UI.RadComboBoxItem(
"Interne cijfers"
,
"Interne cijfers"
))
.Items.Add(New Telerik.Web.UI.RadComboBoxItem(
"Concept cijfers accountant"
,
"Concept cijfers accountant"
))
.Items.Add(New Telerik.Web.UI.RadComboBoxItem(
"Gecons. concept cijfers accnt"
,
"Gecons. concept cijfers accnt"
))
.Items.Add(New Telerik.Web.UI.RadComboBoxItem(
"Officiële vennootsch. cijfers"
,
"Officiële vennootsch. cijfers"
))
.Items.Add(New Telerik.Web.UI.RadComboBoxItem(
"Officiële gecons. cijfers"
,
"Officiële gecons. cijfers"
))
.Items.Add(New Telerik.Web.UI.RadComboBoxItem(
"KvK/D&B cijfers"
,
"KvK/D&B cijfers"
))
.DropDownWidth = New Unit(
"220px"
)
.MarkFirstMatch = True
.Enabled = (ent_FinancialOverview.Locked Is Nothing)
.Width = New Unit(
"147px"
)
.ToolTip =
"Source of figures"
End With
rcb.SelectedValue = ent_FinancialOverview.Source
'or...
rcb.SelectedIndex = rcb.FindItemByText(ent_FinancialOverview.Source).Index
Td.Controls.Add(rcb)
There is no databinding.
Erik