DataGrid Error
I'm doing a datagrid and it's giving error
I will send the project to see if anyone can help me. Follows the error screen when I run the Fabricante view
I'm trying to make the Dialog Template, but it's not working.
This Error is
blazor.server.js:15 [2020-03-31T18:51:40.044Z] Error: Microsoft.JSInterop.JSException: Could not find 'ejsInterop' in 'window'.
Error: Could not find 'ejsInterop' in 'window'.
at https://localhost:44343/_framework/blazor.server.js:8:30748
at Array.forEach ()
at p (https://localhost:44343/_framework/blazor.server.js:8:30709)
at https://localhost:44343/_framework/blazor.server.js:8:31416
at new Promise ()
at e.beginInvokeJSFromDotNet (https://localhost:44343/_framework/blazor.server.js:8:31390)
at https://localhost:44343/_framework/blazor.server.js:1:19202
at Array.forEach ()
at e.invokeClientMethod (https://localhost:44343/_framework/blazor.server.js:1:19173)
at e.processIncomingData (https://localhost:44343/_framework/blazor.server.js:1:17165)
at Microsoft.JSInterop.JSRuntime.InvokeWithDefaultCancellation[T](String identifier, Object[] args)
at Syncfusion.EJ2.Blazor.BaseComponent.OnAfterRenderAsync(Boolean firstRender)
at Syncfusion.EJ2.Blazor.Grids.EjsGrid`1.OnHybridAfterRender(Boolean firstRender)
at Syncfusion.EJ2.Blazor.Grids.EjsGrid`1.OnAfterRenderAsync(Boolean firstRender)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle)
e.log @ blazor.server.js:15
C @ blazor.server.js:8
(anonymous) @ blazor.server.js:8
(anonymous) @ blazor.server.js:1
e.invokeClientMethod @ blazor.server.js:1
e.processIncomingData @ blazor.server.js:1
connection.onreceive @ blazor.server.js:1
i.onmessage @ blazor.server.js:1
blazor.server.js:1 [2020-03-31T18:51:40.046Z] Information: Connection disconnected.
Attachment: Revenda_282edd1f.rar
SIGN IN To post a reply.
3 Replies
VN
Vignesh Natarajan
Syncfusion Team
April 1, 2020 03:44 AM UTC
Hi Ulisses,
Thanks for contacting Syncfusion forums.
Query: “I'm doing a datagrid and it's giving error I will send the project to see if anyone can help me”
We have analyzed your project and found that you have prepared a sample using Syncfusion.EJ2.Blazor Nuget v(17.4.0.46). In the sample you have not referred the required script files. Hence the reported issue occurred. Kindly refer the below scripts into your project to resolve the issue.
|
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Revenda</title>
<base rel='nofollow' href="~/" />
<link rel="stylesheet" rel='nofollow' href="css/bootstrap/bootstrap.min.css" />
<link rel='nofollow' href="css/site.css" rel="stylesheet" />
@*<link rel='nofollow' href="~/css/bootstrap/bootstrap4.css" rel="stylesheet" />*@
<link rel='nofollow' href="https://cdn.syncfusion.com/ej2/17.4.46/material.css" rel="stylesheet" />
<script src="https://cdn.syncfusion.com/ej2/17.4.46/dist/ej2.min.js"></script>
<script src="https://cdn.syncfusion.com/ej2/17.4.46/dist/ejs.interop.min.js"></script>
</head>
|
Note: After referring the above scripts into your project. We are able to render the empty Grid without any error, since we do not have access to your database.
Please find the modified sample from below
Kindly get back to us if you have further queries.
Regards,
Vignesh Natarajan.
UC
Ulisses Correia de Araujo Neto
April 1, 2020 03:17 PM UTC
Thank you very much
VN
Vignesh Natarajan
Syncfusion Team
April 2, 2020 03:07 AM UTC
Hi Ulisses,
Thanks for the update.
We are glad to hear that we have resolved your query.
Kindly get back to us if you have further queries.
Regards,
Vignesh Natarajan.
SIGN IN To post a reply.
- 3 Replies
- 2 Participants
-
UC Ulisses Correia de Araujo Neto
- Mar 31, 2020 06:39 PM UTC
- Apr 2, 2020 03:07 AM UTC