Hello Adyasha,
You could use the pdfExport event of the Grid in order to configure the allPages dynamically. For convenience I updated the example.
I wish you a great day!
Dimiter Madjarov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!






