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.
Unfortunately, activation email could not send to your email. Please try again.

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

Thread ID:

Created:

Updated:

Platform:

Replies:

129397 Mar 15,2017 06:59 PM Mar 16,2017 06:39 AM Xamarin.Forms 1
loading
Tags: SfListView
Jason
Asked On March 15, 2017 06:59 PM

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


Dinesh Babu Yadav [Syncfusion]
Replied On March 16, 2017 06:39 AM

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 
 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;