Exemple #1
0
        protected virtual void SetPagerObject(int totalRecords)
        {
            // Set Pager Information
            Pager.TotalRecords = totalRecords;
            Pager.SetPagerProperties(EventArgument);

            // Build paging collection
            Pages = new PMPagerItemCollection(Pager.TotalRecords, Pager.PageSize, Pager.PageIndex);
            // Set total pages
            Pager.TotalPages = Pages.PageCount;
        }
Exemple #2
0
        private void SetPagerObject(int totalRecords)
        {
            // Set Pager Information
              Pager.TotalRecords = totalRecords;
              Pager.PageSize = 5;
              Pager.SetPagerProperties(string.Empty);

              // Build paging collection
              Pages = new PMPagerItemCollection(
            Pager.TotalRecords,
            Pager.PageSize,
            Pager.PageIndex);

              // Set total pages
              Pager.TotalPages = Pages.PageCount;
        }