Edit this page

set_currentPageIndex()

Sets the current page index for the respective GridTableView object. Can be used to control the active page currentlyviewed by the user.

<telerik:RadGrid RenderMode="Lightweight" ID="RadGrid1" runat="server" AllowPaging="True"
    OnNeedDataSource="RadGrid1_NeedDataSource">
    <MasterTableView DataKeyNames="OrderID">
    </MasterTableView>
</telerik:RadGrid>
<br />
<telerik:RadNumericTextBox RenderMode="Lightweight" ID="RadNumericTextBox1" runat="server" MinValue="1" MaxValue="9"
    Label="Go to page:">
    <NumberFormat DecimalDigits="0" />
</telerik:RadNumericTextBox>
<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 value = $find('<%= RadNumericTextBox1.ClientID %>').get_value();
if (value != "") {
    masterTableView.set_currentPageIndex(value);
}
}