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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Column sorting throws an exception System.NotImplementedException: The method or operation is not implemented.

Thread ID:

Created:

Updated:

Platform:

Replies:

141580 Dec 19,2018 06:15 AM UTC Dec 21,2018 12:56 PM UTC Xamarin.Forms 5
loading
Tags: SfDataGrid
FrozDark
Asked On December 19, 2018 06:15 AM UTC

When I tap on column header to sort it throws System.NotImplementedException: The method or operation is not implemented.

I use the code below
            <sfgrid:SfDataGrid x:Name="SfItemsGrid" 
                               Grid.Row="1"
                               ItemsSource="{Binding Path=Items.DisplayItems}"
                               SelectedItems="{Binding SelectedItems}"
                               AutoGenerateColumns="False"
                               AllowPullToRefresh="True"
                               AllowResizingColumn="True"
                               AllowSorting="True"
                               AllowMultiSorting="True"
                               ColumnSizer="Auto"
                               LiveDataUpdateMode="AllowDataShaping"
                               IsBusy="{Binding IsRefreshing}"
                               PullToRefreshCommand="{Binding RefreshCommand}"
                               SelectionMode="Multiple">
                <sfgrid:SfDataGrid.Columns>
                    <sfgrid:GridTextColumn MappingName="FIO" HeaderText="ФИО" HeaderTextAlignment="Center" TextAlignment="Start"/>
                    <sfgrid:GridTextColumn MappingName="Step" HeaderText="Шаг" HeaderTextAlignment="Center"/>
                    <sfgrid:GridTextColumn MappingName="Orders.Count" HeaderText="Заказов" HeaderTextAlignment="Center"/>
                </sfgrid:SfDataGrid.Columns>
            </sfgrid:SfDataGrid>

FrozDark
Replied On December 20, 2018 11:57 AM UTC

Seems to be that SfDataGrid does not support sorting when Its ItemSource property is binded to non IList object (Like DataSource.DisplayItems in my code above)

Sivaraman Sivagurunathan [Syncfusion]
Replied On December 20, 2018 01:24 PM UTC

Hi,  
  
Thanks for using Syncfusion component.  
 
We have checked your query and prepare the sample based on your requirement. But the issue does not reproduce the issue from our side. we have attached the sample for your reference. You can download the same from the below link. If the issue still persist from your side, modified the sample and revert us with clear replication procedure. 
  
 
Regards,  
Sivaraman 


FrozDark
Replied On December 20, 2018 04:07 PM UTC

Hi,  
  
Thanks for using Syncfusion component.  
 
We have checked your query and prepare the sample based on your requirement. But the issue does not reproduce the issue from our side. we have attached the sample for your reference. You can download the same from the below link. If the issue still persist from your side, modified the sample and revert us with clear replication procedure. 
  
 
Regards,  
Sivaraman 


It would happen if you try to bind to DataSource.DisplayItems from syncfusion components (maybe it also would happen if you bind it to any IEnumerable object not an instance of IList)


FrozDark
Replied On December 21, 2018 04:39 AM UTC

Now I figured out that it only happens with DataSource.DisplayItems. Maybe because it's readonly property I think

Vigneshkumar Ramasamy [Syncfusion]
Replied On December 21, 2018 12:56 PM UTC

 
Dear Customer,  
  
We have checked your query and we have notice that you are using DataSource to set the ItemSource for SfDataGrid. SfDataGrid operation are depends upon the Syncfusion,Xamarin.Data.portable. So we not recommend to set the DataSource as ItemSource for SfDataGrid. Also refer the UG link.  
  
  
Regards,   
Vigneshkumar R 


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

;