DataPager paging problem

2 posts, 0 answers
  1. Hans
    Hans avatar
    1 posts
    Member since:
    Mar 2008

    Posted 24 Feb 2012 Link to this post

    Hi;

    I have a problem with a DataPager paging a RadListView. The RadDataPagerButtonField works as expected when page is loaded the first time; one click and the list pages. After the first pageing is not one click enough, you have to click twice (not double click). I have also noticed that changing page size in the RadDataPagerPageSizeField control has the same effect as the initial click on the RadDataPagerButtonField. Seems like something happens with DataPager after the first paging. Any ideas?



    <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="uxRadPager">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="uxPhotos" LoadingPanelID="uxAjaxLoadingPanel" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="uxPhotos">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="uxRadPager" LoadingPanelID="uxAjaxLoadingPanel" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>

    <telerik:RadListView runat="server" ID="uxPhotos" AllowPaging="true" OnNeedDataSource="uxPhotos_NeedDataSource"
                                        OnItemDataBound="uxPhotos_ItemDataBound" ViewStateMode="Enabled">
                                        <LayoutTemplate>
                                            <asp:Table ID="Table3" runat="server" CellPadding="0" CellSpacing="0">
                                                <asp:TableRow>
                                                    <asp:TableCell>
                                                        <fieldset runat="server" id="itemPlaceholder" />
                                                    </asp:TableCell>
                                                </asp:TableRow>
                                            </asp:Table>
                                            <telerik:RadDataPager ID="uxRadPager" Skin="Vista" runat="server" PagedControlID="uxPhotos"
                                                PageSize="10" ViewStateMode="Enabled">
                                                <Fields>
                                                    <telerik:RadDataPagerButtonField FieldType="FirstPrev" />
                                                    <telerik:RadDataPagerButtonField FieldType="Numeric" />
                                                    <telerik:RadDataPagerButtonField FieldType="NextLast" />
                                                    <telerik:RadDataPagerPageSizeField PageSizeText="Page size: " />
                                                    <telerik:RadDataPagerGoToPageField CurrentPageText="Page: " TotalPageText="of" SubmitButtonText="Go"
                                                        TextBoxWidth="15" />
                                                </Fields>
                                            </telerik:RadDataPager>
                                        </LayoutTemplate>
                                        <ItemTemplate>
                                            <fieldset style="float: left; margin: 0px 0px 0px 0px; padding: 0px 0px 0px 0px;
                                                vertical-align: middle; text-align: center; width: 90px; border: 0px;">
                                                <asp:Table runat="server" CellPadding="0" CellSpacing="0">
                                                    <asp:TableRow>
                                                        <asp:TableCell Style="position: relative">
                                                            <div style="position: relative">
                                                                <asp:Image runat="server" ImageUrl="~/Images/ThumbnailBg.jpg" />
                                                                <div id="Div1" runat="server" style="position: absolute; left: 10px; top: 10px; z-index: 1;">
                                                                    <asp:HyperLink runat="server" ID="uxPhotoLink">
                                                                        <asp:Image runat="server" ID="uxPhoto" /></asp:HyperLink>
                                                                    <div id="Div2" runat="server" style="position: absolute; left: 62px; top: -10px;
                                                                        z-index: 2; height: 20px; width: 20px">
                                                                        <asp:Image runat="server" ID="uxStatus" ImageUrl="~/Images/StatusEdit.png" />
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </asp:TableCell>
                                                    </asp:TableRow>
                                                </asp:Table>
                                            </fieldset>
                                        </ItemTemplate>
                                    </telerik:RadListView>
  2. Antonio Stoilkov
    Admin
    Antonio Stoilkov avatar
    530 posts

    Posted 29 Feb 2012 Link to this post

    Hello Hans,

    You could try disabling the ajax and see if the issue still persists. Additionally, I tried to replicate the issue which you described, but to no avail. Attached to this message, you will find the code which I used for testing. Please, take a look at it and let me know if there are any differences at your end, which I may be leaving out.

    Regards,
    Antonio Stoilkov
    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