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

Latest release breaks my comboboxes...because itemsource class is marked internal

5 Answers 37 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
FieldTRAKS
Top achievements
Rank 1
FieldTRAKS asked on 17 Aug 2010, 05:55 PM
I upgraded to your current release (2010.2 812) today and my comboboxes are broken in my application. As soon as I select a item i get this error

Attempt by method 'System.Linq.Expressions.Expression.CreateLambda(System.Type, System.Linq.Expressions.Expression, System.String, Boolean, System.Collections.ObjectModel.ReadOnlyCollection`1<System.Linq.Expressions.ParameterExpression>)' to access method 'System.Linq.Expressions.Expression`1<System.Func`2<FTSilverControls.FTActivityDialog+FTListItem,FTSilverControls.FTActivityDialog+FTListItem>>.Create(System.Linq.Expressions.Expression, System.String, Boolean, System.Collections.ObjectModel.ReadOnlyCollection`1<System.Linq.Expressions.ParameterExpression>)' failed.

This worked fine in previous builds for the past 1.5 years.

I tracked down the issue....my class FTListItem was marked internal as was its constructors. When I changed those to public everything started to work again. However, this is really not an ideal workaround. Any thoughts??




5 Answers, 1 is accepted

Sort by
0
George
Telerik team
answered on 19 Aug 2010, 11:53 AM
Hello Matt Fraser,

Thank you for contacting us.

We made some optimizations of RadComboBox. This problem is caused by limitation of the framework. You cannot use LINQ queries to internal types. We suggest you to change the accessor of your class from internal to protected.  

I hope this helps. Please do not hesitate to contact us if you require any further information.

Best wishes,
George
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
0
Yann
Top achievements
Rank 1
answered on 05 Dec 2011, 08:21 AM
Bonjour,

I have the same issue but unfortunately my class are not inner classes so i cannot declare them as protected, do you have another way to make it work?

If you don't have any other way can you provide a style for the built in ComboBox of silverlight to look the same way than your combobox, because it works fine with the system combobox.so it could be a good alternative.
0
Valeri Hristov
Telerik team
answered on 06 Dec 2011, 08:49 AM
Hello Yann,

Could you please send us a simple application that demonstrates your usage of internal classes with RadComboBox? I wasn't able to make the standard ComboBox to work in scenario where RadComboBox doesn't...

Regards,
Valeri Hristov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Charles Benoualid
Top achievements
Rank 1
answered on 07 Dec 2011, 03:22 AM
The ticket is submited you just need to uncoment your combobox in the main page to reproduce the bug

Ticket # 490378
0
Valeri Hristov
Telerik team
answered on 07 Dec 2011, 08:34 AM
Hi,

Thank you for the provided application, I appreciate your effort. We were able to reproduce and fix the problem, the upcoming internal build next week will work without problems in your scenario.

Your points have been updated.

Best wishes,
Valeri Hristov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
ComboBox
Asked by
FieldTRAKS
Top achievements
Rank 1
Answers by
George
Telerik team
Yann
Top achievements
Rank 1
Valeri Hristov
Telerik team
Charles Benoualid
Top achievements
Rank 1
Share this question
or