How to access a DataTable created in one script from another script?

How to access a DataTable created in one script from another script?

DSinghDSingh Posts: 6Questions: 4Answers: 0

My code is dynamic. I have 2 scripts. In one I have my DataTable initialized and in the second, I have my button handlers. I want to access my DataTable from outside the script.
Right now, the problem that I am having is that since the Event handlers are bound only to the currently selected elements, I am not able to get all the selected rows in my DataTable, as the button click only considers the current page of the DataTable and neglects any selected rows in other pages(due to pagination).
Is there a way to access the DataTable from outside the script where it is initialized?

This discussion has been closed.