Open Closed

Bug in Commercial Blazor Server Template - update for Blazorise 1.0 #2726


User avatar
0
wojt created
  • ABP Framework version: v5.2-rc1
  • UI type: Blazor Server
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

The ABP Suite template used to generate the Entity razor.cs file needs updating for the DataGrid changes in Blazorise 1.0. It currently generates: private async Task OnDataGridReadAsync(DataGridReadDataEventArgs<SupplierDto> e) { CurrentSorting = e.Columns .Where(c => c.Direction != SortDirection.None) .Select(c => c.Field + (c.Direction == SortDirection.Descending ? " DESC" : "")) .JoinAsString(","); CurrentPage = e.Page; await GetSuppliersAsync(); await InvokeAsync(StateHasChanged); }

SortDirection has replaced Direction, and SortDirection.Default has replaced SortDirection.None It should be:

private async Task OnDataGridReadAsync(DataGridReadDataEventArgs<SupplierDto> e) { CurrentSorting = e.Columns .Where(c => c.SortDirection != SortDirection.Default) .Select(c => c.Field + (c.SortDirection == SortDirection.Descending ? " DESC" : "")) .JoinAsString(","); CurrentPage = e.Page; await GetSuppliersAsync(); await InvokeAsync(StateHasChanged); }

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

1 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    Hi,

    Thanks for your report we will fix it. BTW, your ticket has been refunded

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 16, 2026, 14:50
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.