BEST
DEALS
OF THE
YEAR!
SAVE UP TO $3,000
24 NOV
1 DEC
00 Days
00 Hrs
00 Min
00 Sec
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); }


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

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.1.0-preview. Updated on November 20, 2025, 09:12
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.