Hello,
Is it possible to add event handlers for the following events?
- Page changed
- Rows filtered
If yes, could you please address me to the documentation?
Thanks
Hello,
Is it possible to add event handlers for the following events?
If yes, could you please address me to the documentation?
Thanks
Hi @ade,
The requested events are not supported.
Hi @korchev,
thanks for the quick answer. Is there any workaround? My problem is the following:
What I would like to achieve is the reset of the current selection whenever the user changes the page or filters out rows.
Any suggestion?
The only thing I can suggest is to use the LoadData event of the DataGrid.
OK, thanks for your help.
@ade ,
I'm not sure if you ever found a workaround. I was having the same issue where I was trying to dynamically gather some data only for the objects the user was looking at (displayed in the grid). It would work correctly the first load, but like you when a user changed pages there was no function firing off.
I did not have luck with LoadData but I did have luck with Render.
Here is the setup:
On your RadzenGrid add Render="Render"
In the code section:
Create an int currentPage
Create a function
private void Render(GridRenderEventArgs obj)
{
if (obj.Grid.CurrentPage != currentPage)
{
currentPage = obj.Grid.CurrentPage;
//Reset your selected data
}
}
I had to keep track of the current page as the Render function gets called when the state changes. This potentially prevents a loop.
I hope this helps you or anyone else that comes across this.
-Trevor