New to Telerik UI for ASP.NET AJAX? Download free 30-day trial


The OnDataPagerDestroying client-side event is fired when RadDataPager object is destroyed, i.e. on each window.onunload.

The event handler receives one argument:

  1. the RadDataPager object that fired the event.

The following example uses the OnDataPagerDestroying event to display a message:

<telerik:RadDataPager RenderMode="Lightweight" ID="RadDataPager1" runat="server">
    <ClientEvents OnDataPagerDestroying="DataPagerDestroying" />
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
    <script type="text/javascript">
        function DataPagerDestroying(sender, eventArgs) {
            alert("Destroying datapager with UniqueID: " + sender.get_uniqueID());

See Also

In this article
Not finding the help you need? Improve this article