Hello Everyone,
I am using a Listview and a DataPager. The DataPager is configured like this:
<asp:DataPager ID="DataPager" PageSize="20" class="btn-group btn-group-sm" runat="server">
<Fields>
<asp:NextPreviousPagerField PreviousPageText="<" FirstPageText="<<" ShowPreviousPageButton="true"
ShowFirstPageButton="true" ShowNextPageButton="false" ShowLastPageButton="false"
ButtonCssClass="btn btn-default" RenderNonBreakingSpacesBetweenControls="false" RenderDisabledButtonsAsLabels="false" />
<asp:NumericPagerField ButtonType="Link" CurrentPageLabelCssClass="btn btn-default grey-gallery disabled" RenderNonBreakingSpacesBetweenControls="false"
NumericButtonCssClass="btn btn-default" ButtonCount="4" PreviousPageText="..." NextPageText="..." NextPreviousButtonCssClass="btn btn-default" />
<asp:NextPreviousPagerField NextPageText=">" LastPageText=">>" ShowNextPageButton="true"
ShowLastPageButton="true" ShowPreviousPageButton="false" ShowFirstPageButton="false"
ButtonCssClass="btn btn-default" RenderNonBreakingSpacesBetweenControls="false" RenderDisabledButtonsAsLabels="false"/>
</Fields>
</asp:DataPager>
Everything works fine but this. If i have 15 pages for example... i see blocks of navigation like this
<< < 1 2 3 4 ...> >>
<< < ... 5 6 7 8 ...> >>
<< < ... 9 10 11 12 ...> >>
<< < ... 13 14 15 > >>
When i clic the "..." button after numer 12, that should load last block of page navigation... it does not. But if I hit the ">" it does load. When debugging, i get the same value for e.StartRowIndex when hitting "..." or ">"
Private Sub Listado_PagePropertiesChanging(sender As Object, e As PagePropertiesChangingEventArgs) Handles Listado.PagePropertiesChanging
Try
Paginacion.SetPageProperties(e.StartRowIndex, e.MaximumRows, False)
DataBindListView()
Catch ex As Exception
Throw
End Try
End Sub
So it is very weird, starting to think that it is a control bug. Have anyone deal with this?