Skip to content

Commit

Permalink
Grid paging
Browse files Browse the repository at this point in the history
  • Loading branch information
dhindrik committed Dec 2, 2024
1 parent d67429f commit 9aeea31
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions TinyInsights.Web/Pages/Dependencies.razor
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
}
else
{
<RadzenDataGrid Data="topDependencies">
<RadzenDataGrid Data="topDependencies" PageSize="20" AllowPaging="true" PagerHorizontalAlign="HorizontalAlign.Left" ShowPagingSummary="true">
<Columns>
<RadzenDataGridColumn TItem="CountPerKey" Title="Dependency" Property="@nameof(CountPerKey.Key)" />
<RadzenDataGridColumn TItem="CountPerKey" Title="Count" Property="@nameof(CountPerKey.Count)"
Expand All @@ -85,7 +85,7 @@
}
else
{
<RadzenDataGrid Data="dependencyDurations">
<RadzenDataGrid Data="dependencyDurations" PageSize="20" AllowPaging="true" PagerHorizontalAlign="HorizontalAlign.Left" ShowPagingSummary="true">
<Columns>
<RadzenDataGridColumn TItem="AvgPerKey" Title="Dependency" Property="@nameof(AvgPerKey.Key)" />
<RadzenDataGridColumn TItem="AvgPerKey" Title="Average duration (ms)"
Expand Down
2 changes: 1 addition & 1 deletion TinyInsights.Web/Pages/Errors.razor
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
}
else
{
<RadzenDataGrid Data="errors">
<RadzenDataGrid Data="errors" PageSize="20" AllowPaging="true" PagerHorizontalAlign="HorizontalAlign.Left" ShowPagingSummary="true">
<Columns>
<RadzenDataGridColumn TItem="CountPerKey" Title="Identifier" Property="@nameof(CountPerKey.Key)" />
<RadzenDataGridColumn TItem="CountPerKey" Title="Count" Property="@nameof(CountPerKey.Count)" Width="100px" />
Expand Down
2 changes: 1 addition & 1 deletion TinyInsights.Web/Pages/Events.razor
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
}
else
{
<RadzenDataGrid Data="events">
<RadzenDataGrid Data="events" PageSize="20" AllowPaging="true" PagerHorizontalAlign="HorizontalAlign.Left" ShowPagingSummary="true">
<Columns>
<RadzenDataGridColumn TItem="EventItem" Width="100px" Title="Event type">
<Template>
Expand Down
2 changes: 1 addition & 1 deletion TinyInsights.Web/Pages/PageAnalytics.razor
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
}
else
{
<RadzenDataGrid Data="pageViews">
<RadzenDataGrid Data="pageViews" PageSize="20" AllowPaging="true" PagerHorizontalAlign="HorizontalAlign.Left" ShowPagingSummary="true">
<Columns>
<RadzenDataGridColumn TItem="CountPerKey" Title="Identifier" Property="@nameof(CountPerKey.Key)" />
<RadzenDataGridColumn TItem="CountPerKey" Title="Views" Property="@nameof(CountPerKey.Count)" Width="100px" />
Expand Down
3 changes: 2 additions & 1 deletion TinyInsights.Web/Services/InsightsService.Diagnostics.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using System.Globalization;
using System.Text;
using System.Text.Json;

Expand Down Expand Up @@ -255,7 +256,7 @@ public async Task<List<AvgPerKey>> GetDependencyAvgDurations(GlobalFilter filter

foreach (var row in queryResult.Tables.First().Rows)
{
result.Add(new AvgPerKey(row.First().ToString(), double.Parse(row.Last().ToString())));
result.Add(new AvgPerKey(row.First().ToString(), double.Parse(row.Last().ToString(), CultureInfo.InvariantCulture)));
}

return result;
Expand Down

0 comments on commit 9aeea31

Please sign in to comment.