Hi Matthias,
Thanks for contacting Syncfusion support.
Query: “The RowSelected Handler does not word anymore (I can't find any solution in the documentation && PageSize is always 12 - I use a variable to change the value to another number”
We have tried to reproduce the problem at our end but no success. For your reference we have prepared the below sample(v18.2.0.44) in which RowSelected event is used, PageSize value is changed. Kindly download the sample from below.
|
<button @onclick="ChangePageSize">Change PageSize</button>
<SfGrid @ref="Grid" DataSource="@Orders" AllowPaging="true" Toolbar="@(new List<string>() { "Add", "Edit", "Delete", "Update", "Cancel" })" Height="315">
<GridEvents RowSelected="RowSelectedHandler" TValue="Order"></GridEvents>
<GridPageSettings PageSize="PageSize"></GridPageSettings>
. . .. . . .
</SfGrid>
@code {
public List<Order> Orders { get; set; }
SfGrid<Order> Grid { get; set; }
public int PageSize { get; set; } = 12;
internal int value = 1;
public void RowSelectedHandler(RowSelectEventArgs<Order> args)
{
}
private void ChangePageSize()
{
PageSize = value++;
}
}
|
If you are still facing this problem please share the below details.
- Please ensure v18.2.0.44 Nuget DLLs are used by your application. If not clear the Nuget cache and upgrade to the latest version.
- Grid rendering code along with the customization code you have used to modify the PageSize.
- Kindly check browser tool for any exception and share us those details if any.
- Also bind OnActionFailure event to DataGrid and share argument details to check the exception if it got triggered.
Above requested details will be helpful for us to validate the reported issue at our end and provide solution as soon as possible.
Regards,
Vignesh Natarajan