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

Add Item in Code Exception

1 Answer 67 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
xu qing
Top achievements
Rank 1
xu qing asked on 23 Apr 2010, 03:26 AM
Hi,
I have got an exception when I add item toRadComboBox Control for silverlight of Telerik.My Code is Below this:
 
protected void _client_GetDefaultCounter_CategoryCompleted    (object sender, DataSvr.GetDefaultCounter_CategoryCompletedEventArgs e)
    {
       System.Collections.ObjectModel.ObservableCollection<string> _list = new System.Collections.ObjectModel.ObservableCollection<string>();
            _list = e.Result;
            RadComboBoxItem _cmbItem = null;
            foreach (string _item in _list)
            {
                _cmbItem = new RadComboBoxItem();
                _cmbItem.Content = _item;
 
                if (!this.cbCategory.Items.Contains(_cmbItem))
                {
                    this.cbCategory.Items.Add(_cmbItem);
                }
            }
        }
 
 
The exception is about:
Error: Unhandled Error in Silverlight Application 
Code: 2511    
Category: ParserError       
Message: Overlapping properties“System.Windows.Controls.Panel.Children”。     
File:      
Line: 717     
Position: 36   
 
Did you have this exception before?My Data is load from wcf service.
Thanks.

1 Answer, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 23 Apr 2010, 01:51 PM
Hello xu qing,

Thank you for contacting us.

This is a known issue and it is already resolved. Please migrate to the Q1 2010 SP1 version of the controls available for download under your account.

If you have further questions please let us know.

All the best,
Konstantina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
ComboBox
Asked by
xu qing
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Share this question
or