46 lines
1.1 KiB
Markdown
46 lines
1.1 KiB
Markdown
syncfusion
|
|
for asp.net core
|
|
https://ej2.syncfusion.com/aspnetcore/documentation/introduction
|
|
|
|
|
|
Installation on linux
|
|
https://www.baeldung.com/linux/asp-net-server
|
|
|
|
textbox
|
|
https://ej2.syncfusion.com/aspnetcore/documentation/textbox/getting-started
|
|
|
|
grids
|
|
|
|
|
|
|
|
**asp.net core**
|
|
in asp.net core in model class we cant have our own default constructor. reason can be that they have their own default constructors resulting in collision.
|
|
- setup project
|
|
`dotnet new webapp --output aspnetcoreapp --no-https`
|
|
then
|
|
`dotnet run`
|
|
`dotnet watch run` for hot reloading
|
|
|
|
Adding syncfusion
|
|
`dotnet add package Syncfusion.EJ2.AspNet.Core`
|
|
then in `~/_ViewImports.cshtml`
|
|
`@addTagHelper *, Syncfusion.EJ2`
|
|
|
|
in `~/_Layout.cshtml`
|
|
```html
|
|
|
|
<head>
|
|
...
|
|
<!-- Syncfusion ASP.NET Core controls style -->
|
|
<link rel="stylesheet" href="https://cdn.syncfusion.com/ej2/28.2.3/material.css" />
|
|
<!-- Syncfusion ASP.NET Core controls script -->
|
|
<script src="https://cdn.syncfusion.com/ej2/28.2.3/dist/ej2.min.js"></script>
|
|
</head>
|
|
|
|
<body>
|
|
...
|
|
<!-- Syncfusion ASP.NET Core Script Manager -->
|
|
<ejs-scripts></ejs-scripts>
|
|
</body>
|
|
```
|
|
|