Edit this page

OnDataPagerDestroying

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:RadDataPager>
<telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
    <script type="text/javascript">
        function DataPagerDestroying(sender, eventArgs) {
            alert("Destroying datapager with UniqueID: " + sender.get_uniqueID());
        }
    </script>
</telerik:RadCodeBlock>

See Also