ListView with RadDataPager not working

5 posts, 1 answers
  1. Jens
    Jens avatar
    6 posts
    Member since:
    Dec 2012

    Posted 18 Jul 2014 Link to this post

    Hello,
    i am using a RadDataPager in a ListView.
    <telerik:RadListView ID="ListViewSuche" runat="server" DataKeyNames="URL"  AllowPaging="true">
                <ItemTemplate>
                    <tr>
                        <td>
                            <asp:Literal Text='<%# Eval("URL")%>' runat="server" ID="LitUrl"></asp:Literal>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Literal runat="server" ID="LitBeschreibung" Text='<%# Eval("BESCHREIBUNG")%>'></asp:Literal>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Literal runat="server" ID="LitDatum" Text='<%# Eval("DATUM") %>'></asp:Literal>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <hr style="color: black;">
                        </td>
                    </tr>
      
                </ItemTemplate>
                <EmptyDataTemplate>
                    <table id="TableEmpty" runat="server" style="">
                        <tr>
                            <td>Es wurden keine Dateien gefunden. 
                            </td>
                        </tr>
                    </table>
                </EmptyDataTemplate>
                <LayoutTemplate>
                    <table id="Table2" cellpadding="0" cellspacing="0">
                        <tr id="Tr1">
                            <td id="Td1">
                                <table id="itemPlaceholderContainer" runat="server" border="0" style="width: 100%;"
                                    cellspacing="0">
      
                                    <tr id="itemPlaceholder" runat="server">
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <telerik:RadDataPager ID="RadDataPagerSuche" runat="server" PagedControlID="ListViewSuche"  PageSize="10"  Skin="Metro">
                                    <Fields>
                                        <telerik:RadDataPagerButtonField FieldType="FirstPrev"></telerik:RadDataPagerButtonField>
                                        <telerik:RadDataPagerButtonField FieldType="Numeric"></telerik:RadDataPagerButtonField>
                                        <telerik:RadDataPagerButtonField FieldType="NextLast"></telerik:RadDataPagerButtonField>
                                    </Fields>
                                </telerik:RadDataPager>
                            </td>
                        </tr>
                    </table>
                </LayoutTemplate>
            </telerik:RadListView>


    And now i am searching for an event, which is fired when the RadDataPager ist used.
    Greetings
    Jens
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 18 Jul 2014 in reply to Jens Link to this post

    Hi Jens,

    Please have a look into the following help documentation which discuss about all the Client side and Server side event of RadListView and RadDataPager.

    RadListView Client-side Events
    RadListView Server-side Events
    RadDataPager Server-side Events

    RadDataPager Client Side Events are OnDataPagerCreating,OnDataPagerCreated,OnDataPagerDestroying,OnPageIndexChanging
    and OnPageSizeChanging

    Please elaborate your requirement if it doesn't help.
    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Jens
    Jens avatar
    6 posts
    Member since:
    Dec 2012

    Posted 21 Jul 2014 in reply to Shinu Link to this post

    Hello Shinu,

    thanks for your answer. I tried the PageIndexChanged-Event from the RadListView. But this event will not fired.
    So i tried to get the events from the RadDataPager. But with the implementation in the Rad-Liustview i can not use the Control in my visual studio. It is not shown.

    What have i made wrong?
    Greetings
    Jens
     
  5. Answer
    Eyup
    Admin
    Eyup avatar
    3005 posts

    Posted 24 Jul 2014 Link to this post

    Hello Jens,

    I have created a sample RadListView web site to test the described behavior. On my side the event handler of the RadDataPager is raised as expected. Can you please run the attached application and let me know about the result?

    Regards,
    Eyup
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  6. Jens
    Jens avatar
    6 posts
    Member since:
    Dec 2012

    Posted 24 Jul 2014 in reply to Eyup Link to this post

    Hello Eyup,

    thank you for your help. i found a problem with AjaxPanel.
    Regards

    Jens
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017