protected virtual void SetPagerObject(int totalRecords) { // Set Pager Information Pager.TotalRecords = totalRecords; Pager.SetPagerProperties(EventArgument); // Build paging collection Pages = new PagerItemCollection(Pager.TotalRecords, Pager.PageSize, Pager.PageIndex); // Set total pages Pager.TotalPages = Pages.PageCount; }
protected virtual void SetPagerObject(int totalRecords) { // Set Pager Information Pager.TotalRecords = totalRecords; // Set Pager Properties Pager.SetPagerProperties(EventArgument); // Build paging collection Pages = new PagerItemCollection(Pager); }
private void SetPagerObject(int totalRecords) { // Set Pager Information Pager.TotalRecords = totalRecords; Pager.PageSize = 5; Pager.SetPagerProperties(string.Empty); // Build paging collection Pages = new PagerItemCollection( Pager.TotalRecords, Pager.PageSize, Pager.PageIndex); // Set total pages Pager.TotalPages = Pages.PageCount; }
public virtual void Init() { Pager = new Pager(); IsPagerVisible = true; Pages = new PagerItemCollection(Pager.TotalRecords, Pager.PageSize, Pager.PageIndex); EventCommand = string.Empty; EventArgument = string.Empty; EventCommand = string.Empty; SortExpression = string.Empty; LastSortExpression = string.Empty; SortDirection = SortDirection.Ascending; Mode = "Normal"; IsSearchAreaVisible = true; IsGridAreaVisible = true; IsDetailAreaVisible = false; IsValid = true; }