This is a migrated thread and some comments may be shown as answers.

Error serializing value ‘System.Object[]’ of type ‘System.Object[].’

1 Answer 171 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Gavin Pollock
Top achievements
Rank 1
Gavin Pollock asked on 27 Nov 2008, 05:05 PM
Hi Guys,

We're currently upgrading our implementation of the Classic RadComboBox to the Ajax version, however after trying to assign the combobox SelectedIndex and Text properties with the below code we get the above error message.

cmbCats.SelectedIndex = cmbCats.FindItemIndexByValue(

value.NewsCategoryID.ToString());

 

cmbCats.Text = cmbCats.SelectedItem.Text;

We're using a List as the datasource object and if the above code is omitted the error is avoided, but obviously the correct item isn't selected.

I hope this is enough information to help you diagnose the problem.

Thanks,
Gavin.

1 Answer, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 28 Nov 2008, 02:05 PM
Hi Gavin Pollock ,

The text of the selected Item will be automatically filled in in the input of the ComboBox.

Could you try removing the second line and test again?

In any case more information about the ComboBox definition and any related code manipulating it will help a lot.

Thank you in advance.

Best wishes,
Simon
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
ComboBox
Asked by
Gavin Pollock
Top achievements
Rank 1
Answers by
Simon
Telerik team
Share this question
or