We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could you please give an example with a DataPager component outside of a Grid (from an other library than this one)?
I am trying to bind a pager to a Grid component and I run into this error:
DataSizer requires a cascading parameter PagerState.
Thank you.
The text was updated successfully, but these errors were encountered:
I added this in the razor.cs :
public DataPagerState Pager { get; } = new();
and surrounded the DataPager with a CascadingValue:
<CascadingValue IsFixed="true" Value="Pager" Name="PagerState"> <DataPager PageSize="10" PagerChanged="PageChanged" /> <DataSizer /> </CascadingValue>
but only the page sizer is displayed.
Sorry, something went wrong.
Ok, I think I figured it out.
I forgot to set the Pager.Total.
Pager.Total
It works better now.
I have a remaining issue though : The PageChanged event is not triggered when I select a page in the pagination.
It is only triggered when I change the PageSize.
No branches or pull requests
Could you please give an example with a DataPager component outside of a Grid (from an other library than this one)?
I am trying to bind a pager to a Grid component and I run into this error:
DataSizer requires a cascading parameter PagerState.
Thank you.
The text was updated successfully, but these errors were encountered: