We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

no method 'OrderBy' exists on type 'System.Linq.Queryable' error when sorting

I have an issue where the sorting is causing a runtime error in the SfListView.

I used the online demo to setup the sorting....

            <sync:SfListView.DataSource>
                <dataSource:DataSource>
                    <dataSource:DataSource.SortDescriptors>
                        <dataSource:SortDescriptor PropertyName="SortOrder" Direction="Ascending" />
                    </dataSource:DataSource.SortDescriptors>
                    <dataSource:DataSource.GroupDescriptors>
                        <dataSource:GroupDescriptor PropertyName="OwnerName" />
                    </dataSource:DataSource.GroupDescriptors>
                </dataSource:DataSource>
            </sync:SfListView.DataSource>

The property SortOrder is a calculated field in the object, the items bound to the SfListView is a list of objects List<T>.

Any ideas what could be causing this issue?

Jason


1 Reply

DB Dinesh Babu Yadav Syncfusion Team March 16, 2017 10:39 AM UTC

Hi Jason, 
 
Thank you for contacting Syncfusion Support. 
 
The issue you are facing is possibly a known issue in Xamarin framework that occurs when the linker mode is set as LinkFrameworkSDK’s in iOS platform. We recommend you to try the steps mentioned in the following KB link. 
 
 
Please note that this is a Xamarin framework linker issue in iOS platform, so please don’t be confused with SfDataGrid control or title of the KB. Fortunately the issue and the solution are the same for both the Xamarin.Forms.iOS and the Xamarin.iOS platforms. 
 
If you are able to reproduce the issue even after trying the steps mentioned in the KB, kindly revert us with a replicating sample of the same so that we can resolve your issue asap and help you better. 
 
Please let us know if you require further assistance. 
 
Regards, 
Dinesh Babu Yadav 
 


Loader.
Live Chat Icon For mobile
Up arrow icon