Telerik Forums
UI for Blazor Forum
6 answers
889 views

My project is using the client/webassembly template and I get this error when I sort on the Grid.  I am using CSLA business objects to bind to the grid by the way.  It should just work since it derives from IEnumerable<T>.  The TelerikBlazorApp project sample uses a plain List<WeaterForecast> so I wonder why it doesn't work with the CSLA BusinessList.

Thanks.

 

blazor.webassembly.js:1 WASM: Unhandled exception rendering component:
h.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 WASM: 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.
h.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 WASM:   at System.Linq.Expressions.Expression.FindMethod (System.Type type, System.String methodName, System.Type[] typeArgs, System.Linq.Expressions.Expression[] args, System.Reflection.BindingFlags flags) <0x2a500d8 + 0x0012e> in <c9598198a7e340e28f933e3bfe55dba1>:0
h.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 WASM:   at System.Linq.Expressions.Expression.Call (System.Type type, System.String methodName, System.Type[] typeArguments, System.Linq.Expressions.Expression[] arguments) <0x2a4fde8 + 0x00046> in <c9598198a7e340e28f933e3bfe55dba1>:0
h.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 WASM:   at Telerik.DataSource.SortDescriptorCollectionExpressionBuilder.Sort () <0x2d18610 + 0x00142> in <b8e61d62238c4666b5ff65df7544c779>:0
h.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 WASM:   at Telerik.DataSource.Extensions.QueryableExtensions.Sort (System.Linq.IQueryable source, System.Collections.Generic.IEnumerable`1[T] sortDescriptors) <0x2d18370 + 0x00014> in <b8e61d62238c4666b5ff65df7544c779>:0
h.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 WASM:   at Telerik.DataSource.Extensions.QueryableExtensions.CreateDataSourceResult[TModel,TResult] (System.Linq.IQueryable queryable, Telerik.DataSource.DataSourceRequest request, System.Func`2[T,TResult] selector) <0x2a47060 + 0x002fe> in <b8e61d62238c4666b5ff65df7544c779>:0
h.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 WASM:   at Telerik.DataSource.Extensions.QueryableExtensions.ToDataSourceResult (System.Linq.IQueryable queryable, Telerik.DataSource.DataSourceRequest request) <0x2a2e2a8 + 0x0000a> in <b8e61d62238c4666b5ff65df7544c779>:0
h.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 WASM:   at Telerik.DataSource.Extensions.QueryableExtensions.ToDataSourceResult (System.Collections.IEnumerable enumerable, Telerik.DataSource.DataSourceRequest request) <0x2a2d980 + 0x0000e> in <b8e61d62238c4666b5ff65df7544c779>:0
h.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 WASM:   at Telerik.Blazor.Data.TelerikDataSource.ProcessData (System.Collections.IEnumerable data) <0x2a2d850 + 0x0000a> in <a910a49758ca4acf83cce1dc84471cb6>:0
h.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 WASM:   at Telerik.Blazor.Components.TelerikGridBase`1[TItem].ProcessDataInternal () <0x2a2d590 + 0x0001c> in <a910a49758ca4acf83cce1dc84471cb6>:0
h.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 WASM:   at Telerik.Blazor.Components.TelerikGridBase`1[TItem].ProcessData () <0x2a72220 + 0x00156> in <a910a49758ca4acf83cce1dc84471cb6>:0
h.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 WASM:   at Telerik.Blazor.Components.TelerikGridBase`1[TItem].OnSort (Telerik.Blazor.Components.Grid.IGridHeader header) <0x2a71000 + 0x00104> in <a910a49758ca4acf83cce1dc84471cb6>:0
h.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 WASM:   at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion (System.Threading.Tasks.Task task) <0x25a24e8 + 0x000e6> in <cbf249d7f04d4fa18d15bfae8ef7f389>:0
h.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 WASM:   at Telerik.Blazor.Components.Grid.GridHeaderRowBase`1[TItem].OnHeaderSort (Telerik.Blazor.Components.Grid.IGridHeader header) <0x2d06328 + 0x0014a> in <a910a49758ca4acf83cce1dc84471cb6>:0
h.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 WASM:   at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion (System.Threading.Tasks.Task task) <0x25a24e8 + 0x000e6> in <cbf249d7f04d4fa18d15bfae8ef7f389>:0
h.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 WASM:   at Telerik.Blazor.Components.Grid.GridHeaderBase`1[TItem].ToggleSort () <0x2d05308 + 0x00100> in <a910a49758ca4acf83cce1dc84471cb6>:0
h.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 WASM:   at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion (System.Threading.Tasks.Task task) <0x25a24e8 + 0x000e6> in <cbf249d7f04d4fa18d15bfae8ef7f389>:0
h.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 WASM:   at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask (System.Threading.Tasks.Task taskToHandle) <0x25a9440 + 0x000c2> in <cbf249d7f04d4fa18d15bfae8ef7f389>:0
h.printErr @ blazor.webassembly.js:1
Marin Bratanov
Telerik team
 answered on 09 Jan 2020
3 answers
319 views

hello i have a couple of questions about blazor grid 

 

1) i added a grid column called actions it contains some buttons to navigate but when i add  Reorderable="true" to TelerikGrid im able to change position of this column which i dont want to so i added Reorderable="false" to my action column and it worked i cant change it's position anymore but i can drag my other columns and put it before my action column so it gets affected by the reorderable column and its position gets changed 
but i dont want to

2) i also used Sortable="true" and  FilterMode="@GridFilterMode.FilterMenu" in my TelerikGrid tag but it doesnt get filtered nor sorted i see the red arrow for sort but it doesnt sort and also ui for filter is completely ok but it doesnt filter either aldo the Data im passing to grid is List<SomeDto>

Marin Bratanov
Telerik team
 answered on 08 Jan 2020
1 answer
1.7K+ views
hello it seems there is a problem with OnRead in TelerikGrid

when i try to use OnRead for virtual mode it works fine first time page renders it works and also on scroll it works too
but when i navigate to another page and try to change the Data and then navigate back to the page it seems it kept the last state and i see the previous Data 
untill i use filter , sort , i scroll 

Marin Bratanov
Telerik team
 answered on 06 Jan 2020
1 answer
115 views

hello i wanted to know if there is a way to set a column sortable to false

 

and also how to get context in GridCommandColumn

Marin Bratanov
Telerik team
 answered on 06 Jan 2020
3 answers
231 views

hello,

TelerikButton is not working correct with EditForm 
when i use

       <input type="submit" class="btn btn-primary" value="Save" />
instead of 
<TelerikButton ButtonType="@ButtonType.Submit">Save</TelerikButton>
im able to submit the form with hitting enter
i want this feature with TelerikButton 

Marin Bratanov
Telerik team
 answered on 06 Jan 2020
3 answers
524 views
hello, 
i wanted to know if returned value of Timepicker could be timespan or not ?
Marin Bratanov
Telerik team
 answered on 06 Jan 2020
0 answers
141 views

Hi all,

We would like your feedback on how you want to control the Expanded items in a treeview, please add you comments in this page: https://feedback.telerik.com/blazor/1448095-expanded-items-handling-feedback-requested.

Thank you!

Regards,

Marin Bratanov

Marin Bratanov
Top achievements
Rank 1
Iron
 asked on 06 Jan 2020
2 answers
493 views

Hi, I am trying to use a row template as show below.

However, the command buttons never show. 

What am I missing?

Thanks … Ed

 

   <RowTemplate Context="ctx">
        <td>
            <strong>@ctxName</strong>
        </td>
        <td>
            <strong>@ctx.Number</strong>
        </td>
        @for (int i = 0; i < 14; i++)
        {
             <td>
                 somedata
             </td>
        }
        <td>
           @* this is where the grid command buttons are supposed to show *@
       </td>
 
@*
.
.
.
*@
 
  <GridColumns>
        <GridColumn Field="Name" Title="Room Type" Width="150px" Resizable="true" />
        <GridColumn Field="Number" Title="Room" Width="70px" Resizable="true" />
        @foreach (var item  in Data)
        {
            <GridColumn Field="@item.Name" Title="@item.Title" Width="70px" Resizable="true">
            </GridColumn>
        }
        <GridCommandColumn Width="300px">
            <GridCommandButton Command="Save" Icon="save" ShowInEdit="true"> Update </GridCommandButton>
            <GridCommandButton OnClick="@((args)=> SelectDashboardModel(args.Item as DataModel))"
                  Icon="edit"> Edit         
           </GridCommandButton>
           <GridCommandButton Command="Cancel" Icon="cancel" ShowInEdit="true"> Cancel </GridCommandButton>
           </GridCommandColumn>
</GridColumns>
Marin Bratanov
Telerik team
 answered on 30 Dec 2019
2 answers
161 views

How do I install the Demo version on MacOS (Mojave)?

When I try to download, I only have the option of an exe or an msi - neither of which open on the Mac.

Marin Bratanov
Telerik team
 answered on 28 Dec 2019
1 answer
262 views
When holding down a key in the Telerik TextBox the text seems to stutter like the TextBox is trying to catch up to the user inputs.  This happens with the backspace key, and even happens when there are no events tied to the TextBox.  We don't see this behavior when using a <input type="text" /> field.  It appears to be happening in your demo too.  Is this a known issue?   
Marin Bratanov
Telerik team
 answered on 28 Dec 2019
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?