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

ListView with RadDataPager not working

4 Answers 119 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Jens
Top achievements
Rank 1
Iron
Jens asked on 18 Jul 2014, 07:46 AM
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

4 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 18 Jul 2014, 10:30 AM
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.
0
Jens
Top achievements
Rank 1
Iron
answered on 21 Jul 2014, 06:26 AM
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
 
0
Accepted
Eyup
Telerik team
answered on 24 Jul 2014, 06:33 AM
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.

 
0
Jens
Top achievements
Rank 1
Iron
answered on 24 Jul 2014, 09:43 AM
Hello Eyup,

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

Jens
Tags
ListView
Asked by
Jens
Top achievements
Rank 1
Iron
Answers by
Shinu
Top achievements
Rank 2
Jens
Top achievements
Rank 1
Iron
Eyup
Telerik team
Share this question
or