This is a migrated thread and some comments may be shown as answers.

Grid Filtering crashes when no record

2 Answers 136 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 2
Michael asked on 10 Sep 2020, 05:57 PM

Hey everyone,

I'm not sure it a ticket is already open about this or if it was already adressed but i'm having Null referenced exception on the OnInitializedAsync when i have FilterMode.FilterRow and there are no records yet. 

 

Works fine when i change for FilterMode.None. 

 

 

2 Answers, 1 is accepted

Sort by
0
Michael
Top achievements
Rank 2
answered on 10 Sep 2020, 06:00 PM
Maybe I can add that I made sure to have @using Telerik.Blazor.Components in _Imports.razor and have the TelerikRootComponent in my MainLayout.razor.
0
Svetoslav Dimitrov
Telerik team
answered on 11 Sep 2020, 11:08 AM

Hello Michael,

As an attached file, you could see a demo application, where I have set up a Grid with FilterRow, which gets data from a service and I have added some Delay to simulate actual network delay. If this application works as expected for you, could you compare it against your own and see if there is any difference that may cause the issue. If this does not help, could you modify the project so that the error you are experiencing is reproducible and we can further investigate?

Regards,
Svetoslav Dimitrov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Grid
Asked by
Michael
Top achievements
Rank 2
Answers by
Michael
Top achievements
Rank 2
Svetoslav Dimitrov
Telerik team
Share this question
or