Returns the page count for the respective GridTableView object. Can be used to create some condition for executing different script logic depending on how many pages the user sees.

<telerik:RadGrid RenderMode="Lightweight" ID="RadGrid1" runat="server" AllowPaging="True"
    <MasterTableView DataKeyNames="OrderID">
<br />
<asp:Button ID="Button1" runat="server" Text="Click"
    OnClientClick="buttonClick(); return false;" />
function buttonClick() {
    var grid = $find('<%= RadGrid1.ClientID %>');
    var masterTableView = grid.get_masterTableView();

    var pageCount = masterTableView.get_pageCount();
In this article
Not finding the help you need? Improve this article