X.PagedList
X.PagedList copied to clipboard
PagedList-pageCountAndLocation always display even after setting false in render settings
Describe the bug Take a look here
@Html.PagedListPager((IPagedList)Model,
p => Url.Content($"~/{Context.Request.GetUri().AbsolutePath}?query={ViewBag.query}&num={p}&Size={ViewBag.Size}"),
new PagedListRenderOptions
{
PageClasses = new string[] { "active" },
UlElementClasses = new string[] { "pagination justify-content-center" },
LiElementClasses = new string[] { "" },
DisplayItemSliceAndTotal = true,
LinkToFirstPageFormat = @"<i class=""fa fa-angle-double-left""></i>",
LinkToPreviousPageFormat = @"<i class=""fa fa-angle-left""></i>",
LinkToNextPageFormat = @"<i class=""fa fa-angle-right""></i>",
LinkToLastPageFormat = @"<i class=""fa fa-angle-double-right""></i>",
DisplayLinkToLastPage = PagedListDisplayMode.IfNeeded,
DisplayLinkToFirstPage = PagedListDisplayMode.IfNeeded,
DisplayLinkToNextPage = PagedListDisplayMode.IfNeeded,
DisplayLinkToPreviousPage = PagedListDisplayMode.IfNeeded,
ContainerDivClasses = new string[] { "pagination-wrap" },
DisplayPageCountAndCurrentLocation=false,
PreviousElementClass = "previous",
NextElementClass = "next",
ClassToApplyToLastListItemInPager = "last"
})
}
this generates output -
<div class="pagination-wrap"><ul class="pagination justify-content-center"><li class=" disabled PagedList-pageCountAndLocation">
<a>Showing items 1 through 4 of 4.</a></li><li class="active last"><span class="active">1</span>
</li>
</ul>
</div>
Expected behavior
must not render using x.pagedlist ver 8.1.0