Home > Software engineering >  Using jQuery DataTable in Blazor WASM
Using jQuery DataTable in Blazor WASM

Time:01-30

I want to integrate enter image description here

  1. When I click on any columns header table row suddenly disappear and table has empty:

enter image description here

How can I solve these problems?

Thanks

CodePudding user response:

protected override async Task OnAfterRenderAsync(bool firstRender)
{
    if (firstRender == true)
    {
        //Web API Call Simulation
        // -- Initialization can and should go in OnInitializedAsync

        await JsRuntime.InvokeVoidAsync("ApplyjQueryDatatable");
        //StateHasChanged();  -- remove
    }
}
  •  Tags:  
  • Related