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

FooterTemplate throws error

3 Answers 106 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Nick
Top achievements
Rank 1
Nick asked on 17 Sep 2020, 10:16 PM

     When attempting to implement a Footer Template on a Grid Column, I am getting the following runtime errors: "Unhandled exception rendering component: Value cannot be null" and "Unhandled exception rendering component: Object reference not set to an instance of an object". I have tried something as simple as 

<FooterTemplate>

Test

</FooterTemplate>

And I still get that error, otherwise I get no errors on rendering the page without the FooterTemplate tags within the Grid Column.

3 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 17 Sep 2020, 10:55 PM

Hello Nick,

My best guess is that the project references an older version that does not recognize the footer - it is available in 2.17.0. If you have updated the package reference, try cleaning the project, even deleting the bin and obj folders - sometimes old versions get cached there.

If this does not help, I recommend opening a ticket where you can send is a simple runnable project that shows the problem so we can have a look at it.

 

Regards,
Marin Bratanov
Progress Telerik

Five days of Blazor, Angular, React, and Xamarin experts live-coding on twitch.tv/CodeItLive , special prizes and more, for FREE?! Register now for DevReach 2.0(20).

0
Cesar Augusto
Top achievements
Rank 1
answered on 02 Oct 2020, 01:53 AM
i get this error.  Error: System.ArgumentNullException: Value cannot be null. (Parameter 'source')
0
Marin Bratanov
Telerik team
answered on 02 Oct 2020, 10:44 AM

Hi Cesar,

You can Follow a fix for this and see a workaround (initializing the Data collection of the grid so it is not null) here: https://feedback.telerik.com/blazor/1486142-footertemplate-throws-when-grid-data-is-null

 

Regards,
Marin Bratanov
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
Nick
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Cesar Augusto
Top achievements
Rank 1
Share this question
or