How to get ul li format on this pagination control

May 22, 2013 at 4:28 PM
Edited May 22, 2013 at 4:29 PM
This pager render html like <div class='pager'>
<a ...

<a.....

<a.....
</div>

I need to have ul li format instead of this. Can anyone know how to do that ?


EG code;
@Ajax.Pager(Model.pagedListPageControlModel, null, null, new PagerOptions
{
    PageIndexParameterName = "pager",
    ShowDisabledPagerItems = false,  
    SeparatorHtml = "&nbsp;",
    CurrentPagerItemWrapperFormatString = "<a class=\"selected\" href=\"#\">{0}</a>"
}, new AjaxOptions { UpdateTargetId = "targetPanel"}, new { @class = "pager"})
Feb 8, 2014 at 5:36 PM
@Html.Pager(Model, new PagerOptions
{ ShowPageIndexBox = false,
PageIndexParameterName = "id",
PageIndexBoxType = PageIndexBoxType.
DropDownList, ShowGoButton = false,
CurrentPagerItemWrapperFormatString = "<li class='active'><a>{0}</a></li>",
NavigationPagerItemWrapperFormatString="<li>{0}</li>",
NumericPagerItemWrapperFormatString = "<li>{0}</li>",
CssClass="pagination",
PagerItemsSeperator="",
ContainerTagName="ul"},
new { }
)