Migration Guide for nv-paginationtable
Blazor: PageSizeChangedEvent is now PageSizeChanged#
The page size of NvPaginationtable can be bound with @bind-PageSize, next to
@bind-PageIndex. Blazor needs the callback of a bound parameter to be named
<Parameter>Changed, so PageSizeChangedEvent was renamed.
The old name still works. It is marked obsolete and will be removed in the
next major version. Your handler is called exactly as before. An application
built with the .NET 9 SDK or later gets warning CS0618 with the new name; the
.NET 8 SDK does not report it, so search your code for PageSizeChangedEvent.
Rename the parameter. Its type, EventCallback<double?>, is the same.
@* Before: still works, obsolete *@
<NvPaginationtable PageSize="pageSize" PageSizeChangedEvent="ChangePageSize" />
@* After *@
<NvPaginationtable PageSize="pageSize" PageSizeChanged="ChangePageSize" />
Or bind the page size and drop the handler:
<NvPaginationtable @bind-PageIndex="pageIndex" @bind-PageSize="pageSize" />
PageIndexChanged and every other parameter are unchanged. The web component
and the React, Vue and Angular wrappers are not affected; Vue gains
v-model:page-size and Angular gains [(pageSize)].