Fix reset numPage
This commit is contained in:
@@ -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,4 +1,4 @@
|
||||
@page "/ForceReload"
|
||||
@page "/SetNumRec"
|
||||
|
||||
<h3>Refreshing Data</h3>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user