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

Sort by column hangs

Thread ID:





147882 Sep 26,2019 06:25 PM UTC Oct 2,2019 03:39 AM UTC Blazor 3
Tags: Grid
Responsive Edge
Asked On September 26, 2019 09:34 PM UTC

I tried to follow the documentation to add a grid to an existing client-side blazor app and it hangs upon clicking on a column to sort or using grouping:

blazor.webassembly.js:1 Uncaught (in promise) Error: System.InvalidOperationException: No generic method 'OrderBy' on type 'System.Linq.Queryable' is compatible with the supplied type arguments and arguments. No type arguments should be provided if the method is non-generic. 
  at System.Linq.Expressions.Expression.FindMethod (System.Type type, System.String methodName, System.Type[] typeArgs, System.Linq.Expressions.Expression[] args, System.Reflection.BindingFlags flags) <0x47c7e88 + 0x00130> in <0bc99a9066a34f75a4c7072f889d75eb>:0 
  at System.Linq.Expressions.Expression.Call (System.Type type, System.String methodName, System.Type[] typeArguments, System.Linq.Expressions.Expression[] arguments) <0x47c7b98 + 0x0004a> in <0bc99a9066a34f75a4c7072f889d75eb>:0 
  at Syncfusion.EJ2.Blazor.QueryableExtensions.OrderBy (System.Linq.IQueryable source, System.String propertyName, System.Type sourceType) <0x4805988 + 0x000ba> in :0 
  at Syncfusion.EJ2.Blazor.EnumerableOperation.PerformSorting (System.Collections.IEnumerable dataSource, System.Collections.Generic.List`1[T] sortedColumns) <0x48053f0 + 0x00092> in :0 
  at Syncfusion.EJ2.Blazor.EnumerableOperation.PerformSorting (System.Collections.IEnumerable dataSource, System.Collections.Generic.List`1[T] sortedColumns) <0x47fde60 + 0x00144> in :0 
  at Syncfusion.EJ2.Blazor.DataOperations.PerformSorting (System.Collections.IEnumerable dataSource, System.Collections.Generic.List`1[T] sortedColumns) <0x47fd978 + 0x00008> in :0 
  at Syncfusion.EJ2.Blazor.BaseComponent.DataProcess (System.String dataManager, System.String key) <0x4215468 + 0x001dc> in :0 
  at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)
  at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) <0x287aa58 + 0x000d2> in <18beac3cfc5e45a1a5ba43a33c033ac7>:0 

in the razor page:

... other cols ...

@code {
    public List OrderDtos { get; set; }

    protected override async Task OnInitializedAsync()
        var response = await Http.GetJsonAsync("api/order");
        OrderDtos = JsonConvert.DeserializeObject>(response.Result.ToString());

Renjith Singh Rajendran [Syncfusion]
Replied On September 27, 2019 09:21 AM UTC

Hi Customer,  
Thanks for contacting Syncfusion support.  
We have analyzed the reported exception. We suspect that the problem is because of [Blazor] IL Linker not working properly. So we suggest you to disable the IL Linker in your application . Please add the below highlighted code in your .csproj file to overcome the problem you are facing. Please use the code below, 


Please refer the link for more information regarding this : https://github.com/mono/mono/issues/12917 

Please get back to us if you need further assistance.  
Renjith Singh Rajendran. 

Responsive Edge
Replied On October 1, 2019 05:44 PM UTC

Thanks! That was the issue and it is now resolved.

Vignesh Natarajan [Syncfusion]
Replied On October 2, 2019 03:39 AM UTC

Hi Customer,  

Thanks for the update.  

We are glad to hear that your query has been resolved by our solution.  

Please get back to us if you have further queries.   

Vignesh Natarajan. 


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

Live Chat Icon For mobile
Live Chat Icon