Event when switching pages in child table

What event fires when switching pages in a child table? I have a procedure that applies styles in the rows in refresh event of the parent but it gets cleared when switching pages, and only re-applies back when the form is reloaded (ellipsis>>reload).

I’m not aware of any event like this from the Frappe side. If you wanted this behavior, you could either add a listener at runtime to the widget or override the child table class.

Thanks for the idea. Can you give an example how to do this?

To add a listener via jquery, you’d add code to a custom script along the lines of:

$(".grid-pagination").click(() => console.log("page event"))
1 Like

Thanks, I’m going to try this.