end of list part

master
Lilian BRETON 2 years ago
parent e8584747ff
commit 43066e729a

@ -4,9 +4,8 @@
"position": 1
},
{
"itemName": "lili",
"position": 2,
"number": 11
"itemName": "null",
"position": 2
},
{
"itemName": "null",
@ -37,9 +36,8 @@
"position": 9
},
{
"itemName": "lili",
"position": 10,
"number": 11
"itemName": "null",
"position": 10
},
{
"itemName": "null",

@ -97,6 +97,7 @@ namespace myBlazorApp.Pages
if (SearchText.IsNullOrEmpty())
{
choix = items;
totalItem = items.Count();
NavigationManager.NavigateTo("inventory", false);
}
else
@ -106,8 +107,10 @@ namespace myBlazorApp.Pages
pageSize = Filtered.Count() - (currentPage - 1) * 10;
}
choix = Filtered.GetRange((currentPage - 1) * 10, pageSize);
totalItem = Filtered.Count();
}
StateHasChanged();
NavigationManager.NavigateTo("inventory", false);
return choix;
}

Loading…
Cancel
Save