List or Library control - next/previous page

Hello community,

am I somehow able to check if "Next/Previous" page button is clicked?
What I am doing. When the library control is loaded, it shows up to the limit set in the view for the Document library - for example 30,50 photos. I take them and create thumbnails in the HTML control.

For some reasons I need to show 5 photos at maximum and when the user clicks on "next" or "previous" page button, I need to rerender the HTML control with fresh photos taken from Library control.

Thank you
Stepan

Hi @StepanS,

You can handle the dataBound event, which is raised each time the data is updated:

fd.control('ListOrLibrary1').widget.bind('dataBound', (e) => {
    console.log(e);
});
1 Like

Hello @IliaLazarevskii,

I will test it and let you know, thank you :slight_smile:
Stepan