From 6d7084f2bbd90474da9ab0e047f8cced62eb1969 Mon Sep 17 00:00:00 2001 From: Adam Weigert Date: Thu, 16 Apr 2020 12:59:20 -0400 Subject: [PATCH] Fix for colspan with DetailTemplate --- src/BlazorTable/Components/Table.razor | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/BlazorTable/Components/Table.razor b/src/BlazorTable/Components/Table.razor index 1710b3ec..f4817f93 100644 --- a/src/BlazorTable/Components/Table.razor +++ b/src/BlazorTable/Components/Table.razor @@ -3,13 +3,15 @@ @if (Columns.Any()) { + var columnCount = Columns.Count + (_detailTemplate != null ? 1 : 0); +
@if (ShowSearchBar) { - + } @@ -124,7 +126,7 @@ else if (_emptyDataTemplate != null) { - @@ -133,7 +135,7 @@ else { -
+ @_emptyDataTemplate
+ @if (_loadingDataTemplate != null) { @_loadingDataTemplate