Paging in RadGrid

2 posts, 0 answers
  1. Ashish
    Ashish avatar
    2 posts
    Member since:
    Jan 2013

    Posted 15 Jan 2013 Link to this post

    Hi Team ,
     i have use in my website Telrik conrol and red grid.
    but paging is not working in redgird.

    aspx code:<telerik:RadGrid ID="gvLookupData" OnPageIndexChanged="gvLookupDataPageIndexChanged" OnSelectedIndexChanged="gvLookupData_SelectedIndexChanged" OnItemDataBound="gvLookupData_ItemDataBound" OnItemCommand="gvLookupData_ItemCommand" runat="server" AllowPaging="True" AutoGenerateEditColumn="false" AutoGenerateColumns="false" CellPadding="3"GridLines="None"PageSize="1"><MasterTableView><Columns> <telerik:GridBoundColumn UniqueName="Key_Id" HeaderText="KeyId" Visible="true"ReadOnly="true" DataField="Key_Id"></telerik:GridBoundColumn></Columns></MasterTableView></telerik:RadGrid>

    Cs code:
     protected void gvLookupDataPageIndexChanged(object sender, Telerik.Web.UI.GridPageChangedEventArgs e)
            int index = e.NewPageIndex;
            int current = gvLookupData.CurrentPageIndex;

     public void BindGrid( )
            DataSet ds = (new Linx2DB()).RED_GetLookupHierarchicalData().ExecuteDataSet();
            gvLookupData.DataSource = ds;    
            gvLookupData.CurrentPageIndex = gvLookupData.MasterTableView.CurrentPageIndex;


    protected void Page_Load(object sender, EventArgs e)










































  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 15 Jan 2013 Link to this post


    Paging, Sorting and Filter works fine when the RadGrid is bound with Advanced Data-binding (using NeedDataSource event).

Back to Top