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


    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?

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

    <telerik:RadListView runat="server" ID="uxPhotos" AllowPaging="true" OnNeedDataSource="uxPhotos_NeedDataSource"
                                        OnItemDataBound="uxPhotos_ItemDataBound" ViewStateMode="Enabled">
                                            <asp:Table ID="Table3" runat="server" CellPadding="0" CellSpacing="0">
                                                        <fieldset runat="server" id="itemPlaceholder" />
                                            <telerik:RadDataPager ID="uxRadPager" Skin="Vista" runat="server" PagedControlID="uxPhotos"
                                                PageSize="10" ViewStateMode="Enabled">
                                                    <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" />
                                            <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: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" />
  2. Antonio Stoilkov
    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.

    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.
Back to Top