Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Why is dialogue service not working in my Blazor application? Any Ideas?

$
0
0

I am trying to make a popup in Blazor using Radzen and I believe this is not working because of dialogue service in the code section. Everything runs properly except when I click the button nothing pops up. How can I get it to work?

<RadzenDataGridColumn TItem="IDictionary<string, object>" Title="Modify"><Template><RadzenButton ButtonStyle="ButtonStyle.Info" Icon="edit"                                     Class="m-1" Click=@EditSkill/></Template></RadzenDataGridColumn>@code{    async Task EditSkill()    {     await DialogService.OpenAsync("Edit Skill", ds =>        @<RadzenCard><div><p class="mb-4">Skill ID <b>1</b></p><div class="row"><div class="col"><RadzenButton Text="Ok" Click="() => ds.Close(true)" Class="mr-1"                         Style="width: 80px;" /><RadzenButton Text="Cancel" Click="() => ds.Close(false)"                         ButtonStyle="ButtonStyle.Secondary" Class="mr-1" /></div></div></div></RadzenCard>);    }}

Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>