Grid GridColumn IsVisible hides filter values when loading from SettingsProvider if false

Aperta
#1,243 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
bootstrap, csharp
Ambito
frontend

Direzione di ricerca

Start with the linked Grid settings demo, BlazorBootstrap.Demo.RCL/Components/Pages/Demos/Grid/08-grid-settings/Grid_Demo_16_Save_And_Load_Grid_Settings.razor, and trace how saved settings restore filters for columns with IsVisible="false". Reproduce the steps in the issue and inspect the Grid filter UI and settings restoration entry points. Done means saved filters remain visible in the filter headers after returning to the page, while the data stays filtered.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Describe the bug
In the Grid component - When using:

  • SettingsProvider (apply saved settings)
  • IsVisible parameter in a GridColumn set to FALSE

The filter gets applied to the data set, but does not show up in the UI

To Reproduce
Steps to reproduce the behavior:

  1. Add IsVisible="false" to any one of the GridColumn components in the Grid Settings example
  2. Go to the page and set a filter
  3. Leave the page and come back
  4. See the data is filtered but the filter headers are empty

Expected behavior
The filter headers should indicate what the active filters are

Versions:

  • .NET Version: .NET 8
  • BlazorBootstrap: 3.5
  • Blazor WebAssembly / Server: WebAssembly
  • Blazor Interactive Render Mode: WebAssembly
  • Blazor Interactivity Location: Global

Sample code
using Grid Settings demo code + IsVisible="false"

GitHub repo
Save_And_Load_Grid_Settings

Lingua principale
HTML
Stelle
1.2k
Fork
111
Merge medio
4m
PR unite (30g)
55

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di vikramlearning/blazorbootstrap

Tutte le issue di vikramlearning/blazorbootstrap

Issue simili

Altre issue su Web Dev

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.