This is a migrated thread and some comments may be shown as answers.

DataPager paging problem

1 Answer 88 Views
DataPager
This is a migrated thread and some comments may be shown as answers.
Hans
Top achievements
Rank 1
Hans asked on 24 Feb 2012, 03:41 PM
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>

1 Answer, 1 is accepted

Sort by
0
Antonio Stoilkov
Telerik team
answered on 29 Feb 2012, 10:06 AM
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.
Tags
DataPager
Asked by
Hans
Top achievements
Rank 1
Answers by
Antonio Stoilkov
Telerik team
Share this question
or