CRUD using dapper not working

Hi Team,

I follow data binding to the grid using Dapper https://blazor.syncfusion.com/documentation/common/data-binding/dapper-databinding (my first CRUD learning). Iface 2 issues:

1 Grid does not look good (broken)

2  I can't get CRUD to work, Please help.

SaM




Attachment: BlazorBugTrackerApp2_744acf1b.rar

1 Reply

RS Renjith Singh Rajendran Syncfusion Team April 18, 2022 09:38 AM UTC

Hi Sao,


Greetings from Syncfusion support.


We have analyzed your shared sample and we could see that you have added Syncfusion.Blazor nuget in your application. At this case, it is suggested to use the below style to apply styles to Grid and render Grid component.

References :

https://blazor.syncfusion.com/documentation/appearance/themes#static-web-assets

https://blazor.syncfusion.com/documentation/getting-started/blazor-server-side-visual-studio


Please replace with the below style,


 

<head>

    ...

 @*<link rel='nofollow' href="_content/Syncfusion.Blazor.Themes/bootstrap5.css" rel="stylesheet" />*@

  <link rel='nofollow' href="_content/Syncfusion.Blazor/styles/bootstrap5.css" rel="stylesheet" />

 

</head>

 


We tried further checking by running your shared sample. But we due to SQL Server connection problem occurred in your application we could not bind data from your db into grid. So we suggest you to refer our documentation in which we have provided step by step instructions in implementing Grid with data from dapper. And also, please refer our GitHub link for a working sample.


Please refer the above attachments and check this from your side. And if you are still facing difficulties then we suggest you to bind OnActionFailure event to Grid and share with us the details you get in this event’s arguments. And also share with us a video demo showing the replication of the problem.


Regards,

Renjith R


Loader.
Up arrow icon