0

I am trying to use WebGrid in ASP.NET Core (installed package NonFactors.Grid.Mvc6 followed instructions from link

 @(Html.Grid(Model).Build(columns =>
                    {
                        columns.Add(model => model.FName).Titled("FistName");
                    })
                .Filterable()
                .Sortable()
                .Pageable()
        )

But running the code, the page shows blank, chrome-dev-tool: shows error:

Failed to load resource: net::ERR_CONNECTION_RESET

suggestions, what can be done to fix it. Thank you

Tetsuya Yamamoto
  • 24,297
  • 8
  • 39
  • 61
Ben
  • 375
  • 8
  • 32
  • the instructions for the MvcGrid is for non-Core. I am looking for Core MvcGrid instructions.. – kblau Mar 26 '19 at 05:47

1 Answers1

0

The error may occur when browser failed to download any resource file , check that in Network tab in F12 develop tools . Another possibility is resource blocked by one ad blocking plugin , you can click here and here for more details .

Since the WebGrid resources(js,css files) are downloaded and add to your project , IMO WebGrid plugin won't cause the resource load error .

The problem is that data is not bind to WebGrid . According to document , after installing the Nuget , you should copy the JS/css files to wwwroot folder , and reference them in your _Layout.cshtml , initialize MVC.Grid instances after rendering grid html as document shown .Also confirming you have sending the correct model lists to view form controller .

Nan Yu
  • 26,101
  • 9
  • 68
  • 148