[Grid]: Multiple selection and paging not work togehter
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 35/100
Línea de trabajo
Start by locating the Grid component’s client-side DataProvider, paging, and multiple-selection handling; the issue names no source files or tests. Reproduce by selecting items, changing pages, and checking whether selection remains visible and SelectedItemsChanged fires as expected. Done when selections persist across page changes in the described setup.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
I have a Grid with AllowPaging, AllowSelection, and SelectionMode="GridSelectionMode.Multiple". I configured a DataProvider for client-side mode.
Selection and paging work, but when I select some items and then change the page, the selection is cleared. I tried storing SelectedItems in a local variable, but that didn't help.
I also noticed that every time I change the page, the SelectedItemsChanged function is called. So, in that function I added something like:
if (items is not null && items.Count > 0)
{
foreach (var item in items)
{
if (!SelectedItems.Any(s => s.Id == item.Id))
{
SelectedItems.Add(item);
}
}
}
to keep the selected items, but if I change page in a one with items selected, in the Grid those are non seletect.
I try also
private async Task<GridDataProviderResult<MyItem>> TableItemsResultDataProvider(GridDataProviderRequest<MyItem> request)
{
var result = await Task.FromResult(request.ApplyTo(TableItems));
itemsGrid.SelectedItems = SelectedItems;
return result;
}
But items alread not selected.
- Lenguaje dominante
- HTML
- Estrellas
- 1.2k
- Forks
- 111
- Merge medio
- 4 min
- PR fusionados (30 d)
- 55
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de vikramlearning/blazorbootstrap
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
vikramlearning/blazorbootstrap#1388 ·
Los mantenedores suelen responder en 1 día
-
NET 11 SupportAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 28/100
vikramlearning/blazorbootstrap#1362 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
vikramlearning/blazorbootstrap#1346 ·
Los mantenedores suelen responder en 1 día
-
Showcase: rich sample websites built with Blazor BootstrapPosiblemente ocupada @gvreddy04 la tomó hace 8 días. Abierto
vikramlearning/blazorbootstrap#1343 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
[New Component] TreeViewAbiertoarea-tree-view new component
Dificultad 5/5 Más de una semana Aptitud para principiantes 8/100
vikramlearning/blazorbootstrap#1339 ·
Los mantenedores suelen responder en 1 día
Todos los issues de vikramlearning/blazorbootstrap
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
DioxusLabs/blitz#1614 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
boxlite-ai/boxlite#2777 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
quality-assurance
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Paul-Austin-Oswego-CSC480-HCI521/gift-app#249 ·
Los mantenedores suelen responder en 1 día
-
bug P3
Dificultad 1/5 Menos de una hora Aptitud para principiantes 87/100
Los mantenedores suelen responder en 1 día