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

[Solved] error_loading_data_from_domaindatasource

0 Answers 81 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Eric Lincoln
Top achievements
Rank 1
Eric Lincoln asked on 31 Dec 2009, 07:54 PM
VS2008 SP1, MVC FRAMEWORK RC
SILVERLIGHT 3
RADGRIDVIEW 12/08/2009

I'm getting the same error as Corey:

http://www.telerik.com/community/forums/silverlight/gridview/error-binding-gridview-to-domaindatasource.aspx

However, the DDS query that produces the error isn't preceded by a query that returns an empty list:

1.<riaControls:DomainDataSource x:Name= "DDS1" AutoLoad=False >
2. Initial call to DDS1.QueryName = "GetItemsQuery" and DDS1.Load() is made in the Page Loaded handler or a [ScriptableMember] handler not in the page constructor.
3  The ensuing call to the RIA query, GetItems, returns the correct data.but this Silverlight error occurs:
"No method 'Count' on type 'System.Linq.Queryable' is compatible with the supplied arguments"
4. If DDS1.Load() is called in the page constructor (after InitializeComponent) no error occurs even if AutoLoad=False.
5. The latest internal build (1219) fixes the problem.



Tags
GridView
Asked by
Eric Lincoln
Top achievements
Rank 1
Share this question
or