AllowSEOPaging Causes PageSize to reset

2 posts, 0 answers
  1. Ed Lance
    Ed Lance avatar
    61 posts
    Member since:
    Jun 2012

    Posted 09 Dec 2011 Link to this post

    I have a listview with integrated DataPagers.  If I set AllowSEOPaging it causes the user's page size setting to be reset.

    Steps to reproduce:
    1. Open the page
    2. Change page size to 20.  The page posts and now the listview is set to page size 20
    3. Select page 2 on the pager.  The page posts and the listview is on the second page, but the page size is back to 12 again.

    If I remove the AllowSEOPaging property, then page size stays where the user set it.

    <telerik:RadListView ID="SearchRadListView" runat="server" ItemPlaceholderID="ItemPlaceHolder"
        DataKeyNames="id" DataSourceID="SearchSqlDataSource" AllowPaging="True" PageSize="12" BackColor="White" >
        <LayoutTemplate>
            <div>
                <div style="clear: both; margin-right: 5px; margin-left: 5px;">
                <telerik:RadDataPager ID="RadDataPager2" runat="server" PageSize="12" PagedControlID="SearchRadListView" Skin="Default" AllowSEOPaging="True">
                    <Fields>
                        <telerik:RadDataPagerButtonField FieldType="FirstPrev" />
                        <telerik:RadDataPagerButtonField FieldType="Numeric" />
                        <telerik:RadDataPagerButtonField FieldType="NextLast" />
                        <telerik:RadDataPagerGoToPageField />
                        <telerik:RadDataPagerPageSizeField />
                        <telerik:RadDataPagerTemplatePageField>
                        <PagerTemplate>
                        </PagerTemplate></telerik:RadDataPagerTemplatePageField>
                    </Fields>
                </telerik:RadDataPager>
                </div>
                <asp:PlaceHolder ID="ItemPlaceHolder" runat="server"></asp:PlaceHolder>
                <div style="clear: both; margin-right: 5px; margin-left: 5px;">
                <telerik:RadDataPager ID="RadDataPager1" runat="server" PageSize="12" PagedControlID="SearchRadListView" Skin="Default" AllowSEOPaging="True">
                    <Fields>
                        <telerik:RadDataPagerButtonField FieldType="FirstPrev" />
                        <telerik:RadDataPagerButtonField FieldType="Numeric" />
                        <telerik:RadDataPagerButtonField FieldType="NextLast" />
                        <telerik:RadDataPagerGoToPageField />
                        <telerik:RadDataPagerPageSizeField />
                    </Fields>
                </telerik:RadDataPager>
                </div>
            </div>
        </LayoutTemplate>
        <ItemTemplate>
            <div class="mb-results" style="text-align: center;">
                <div>
                    <a href='../species.asp?id=<%# Eval("id")%>'>
                        <img class="mbphotos" alt="<%# Eval("comname")%> - <%# Eval("GenusName")%> <%# Eval("SpeciesName")%>" src='<%# Eval("pic")%>'>
                    </a>
                </div>
                <a href='../species.asp?id=<%# Eval("id")%>'><strong><%# Eval("comname")%></strong><br />
                    <em><%# Eval("GenusName")%> <%# Eval("SpeciesName")%></em>
                </a>
                <br />
                Family: <a href='../search/Index.aspx?family=<%# Eval("FamilyName")%>'><%# Eval("FamilyName")%></a>
            </div>
        </ItemTemplate>
    </telerik:RadListView>
  2. Mira
    Admin
    Mira avatar
    1124 posts

    Posted 14 Dec 2011 Link to this post

    Hello Ed,

    The described behavior is a bug. I have logged it and our developers will be working on fixing it for future versions of RadControls for ASP.NET AJAX.
    You can track it here.

    I hope this helps.

    Best wishes,
    Mira
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top