Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Grid > To get the total count of records

Not answered To get the total count of records

Feed from this thread
  • Savyo avatar

    Posted on May 17, 2012 (permalink)

    Hallo
         I have more than 250 records in my grid. I have enabled paging and filtering in my grid. However im unable to get the total count of the records. I have tried prerender, but all im able to get is the count of the records in the current page. Please help me out..
    thanks
    Savyo

    Reply

  • Posted on May 17, 2012 (permalink)

    Hi Savyo,

    Try the following code snippet to get the total count of records.

    C#:
    protected void RadGrid1_ItemEvent(object sender, GridItemEventArgs e)
    {
        if (e.EventInfo is GridInitializePagerItem)
        {
            int RowCount = (e.EventInfo as GridInitializePagerItem).PagingManager.DataSourceCount;
        }
    }

    Thanks,
    Princy.

    Reply

  • Say Hello to Telerik's PivotGrid for ASP.NET AJAX, Silverlight, WPF and WinForms. Now packed with OLAP support.

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Grid > To get the total count of records
Related resources for "To get the total count of records"

ASP.NET Grid Features  |  Documentation  |  Demos  |  Step-by-step Tutorial  ]