Edit this page

OnDataPagerCreating

The OnDataPagerCreating client-side event is fired before RadDataPager is created.

The event handler receives one argument:

  1. the RadDataPager object that fired the event.

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

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

See Also