Fix reset numPage

This commit is contained in:
Samuele Locatelli
2024-03-11 14:31:40 +01:00
parent 337a4252f9
commit ba447558d4
3 changed files with 5 additions and 4 deletions
@@ -25,7 +25,7 @@
</div>
<div class="mt-2">
<EgwCoreLib.Razor.DataPager @ref="pagerOrderHP" PageSize="@numRecord" currPage="@currPage" numRecordChanged="ForceReload" numPageChanged="ForceReloadPage" totalCount="@totalCount" showLoading="@isLoading" />
<EgwCoreLib.Razor.DataPager @ref="pagerOrderHP" PageSize="@numRecord" currPage="@currPage" numRecordChanged="SetNumRec" numPageChanged="SetPage" totalCount="@totalCount" showLoading="@isLoading" />
</div>
</div>
}
@@ -272,12 +272,13 @@ namespace WebDoorCreator.UI.Components.Order
currDoor = null;
}
protected void ForceReload(int newNum)
protected void SetNumRec(int newNum)
{
currPage = 1;
numRecord = newNum;
}
protected void ForceReloadPage(int newNum)
protected void SetPage(int newNum)
{
currPage = newNum;
}
+1 -1
View File
@@ -1,4 +1,4 @@
@page "/ForceReload"
@page "/SetNumRec"
<h3>Refreshing Data</h3>