Exemple #1
0
 /// <summary>
 /// Configures the pager.
 /// </summary>
 /// <param name="vrtualItemCount">The virtual item count.</param>
 /// <param name="masterDefinition">The master definition.</param>
 protected virtual void ConfigurePager(int virtualItemCount, IContentViewMasterDefinition masterDefinition)
 {
     if (masterDefinition.AllowPaging.HasValue &&
         masterDefinition.AllowPaging.Value &&
         masterDefinition.ItemsPerPage.GetValueOrDefault() > 0)
     {
         this.Pager.VirtualItemCount = virtualItemCount;
         this.Pager.PageSize         = masterDefinition.ItemsPerPage.Value;
         this.Pager.QueryParamKey    = this.Host.UrlKeyPrefix;
     }
     else
     {
         this.Pager.Visible = false;
     }
 }
 /// <summary>
 /// Configures the pager.
 /// </summary>
 /// <param name="vrtualItemCount">The virtual item count.</param>
 /// <param name="masterDefinition">The master definition.</param>
 protected virtual void ConfigurePager(int virtualItemCount, IContentViewMasterDefinition masterDefinition)
 {
     if (masterDefinition.AllowPaging.HasValue &&
         masterDefinition.AllowPaging.Value &&
         ItemsPerPage() > 0)
     {
         this.Pager.VirtualItemCount = virtualItemCount;
         this.Pager.PageSize = ItemsPerPage();
         this.Pager.QueryParamKey = this.Host.UrlKeyPrefix;
     }
     else
     {
         this.Pager.Visible = false;
     }
 }