예제 #1
0
        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;
        }
예제 #2
0
        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);
        }
예제 #3
0
        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;
        }
예제 #4
0
        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;
        }