troubleshooting Question

.Net Core 3 HtmlGrid WithFooter not an option

Avatar of Adam Collins
Adam Collins asked on
.NET Programming* asp.net core mvcAssembly
7 Comments1 Solution167 ViewsLast Modified:
I am a noob when it comes to .Net Core and I was asked to upgrade an existing project from Core 2.2 to 3.1. I have been slowly working though the issues but this one I can not find any help on.

I am getting an error:

CS1061 'IHtmlGrid' does not contain a definition for 'WithFooter' and no accessible extension method 'WithFooter' accepting a first argument of type 'IHtmlGrid' could be found (are you missing a using directive or an assembly reference?)

Here is the full page code from my FollowupOnTimeGrid.cshtml:


@(Html.Grid(Model)
    .Build(c =>
    {
        c.Add(m => m.SurveyDateRange).Titled("Survey Period").InitialSort(GridSortOrder.Asc);
        c.Add(m => m.Due);
        c.Add(m => String.Format("{0} ({1:f2}%)", m.OnTime, m.Due == 0 ? 0 
           : Math.Round((((double)m.OnTime) / m.Due) * 100.0, 2)))
                 .Titled("Surveys Taken on Time (N (%))");
    })
    .Css("table-striped table-bordered table-hover")
    .Named("FollowupOnTimeGrid")
    .Empty("No Records Found!")
    .WithFooter("_FollowupOnTimeGridFooter")
)
ASKER CERTIFIED SOLUTION
Adam Collins

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 7 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros