locked
Objectlist Pagination Problem RRS feed

  • Question

  • User1436359208 posted

    Hi everyone,


    I am developing a website for mobile devices and i found the problem in objectlist pagination.

    here is my code:

    <mobile:ObjectList Runat="server" ID="objList" BackColor="#99CCFF" Alignment="Left"
                LabelStyle-Alignment="Left" LabelStyle-BackColor="#3333CC" LabelStyle-Wrapping="NotSet"
                BackCommandText="Go Back" Visible="True" BreakAfter="false" CommandStyle-Alignment="Center"
                AutoGenerateFields="False" LabelField="StoreName" OnPreRender="objList_PreRender"
                TableFields="StoreName;ContactPerson;Email" ItemsPerPage="10" StyleReference="image">
                <Field DataField="StoreId" Title="" Visible="False" />
                <Field DataField="StoreName" Title="Store" />
                <DeviceSpecific Runat="server">
                    <Choice>
                        <HeaderTemplate>
                            <table>
                            <ucHeader:Header ID="headerLogin" runat="server" />
                        </HeaderTemplate>
                        <itemtemplate>
                            <tr><td>
                            <mobile:Label ID="lblHidden" Runat="server" Visible="false">
                                <%#Eval("StoreId") %>
                            </mobile:Label>
                            <mobile:Link ID="lnkUrl" Runat="server" Visible="true">
                                <%#Eval("StoreName") %>
                            </mobile:Link></td></tr>
                        </itemtemplate>
                        <footertemplate>
                                <mobile:Command ID="btnPrevious" Runat="server" Format="Link" BreakAfter="False"
                                    OnItemCommand="btnPrevious_Click">Previous</mobile:Command>
                                <mobile:Command ID="btnNext" Runat="server" Format="Link" BreakAfter="True" OnItemCommand="btnNext_Click">Next</mobile:Command>
                            </table>
                        </footertemplate>
                    </Choice>
                </DeviceSpecific>
            </mobile:ObjectList>

    problem:  i want to show the footer control(containing the footer link menus) on each page in the objectlist. but by doing this i get the pager after footer control.
    		i want to get the pager before footer control.

    So anyone knows regarding this of ever faces the problem like this..?
    can i access the header or footer control in code behind like in gridview if yes the how?

    Thank in advance



    Saturday, February 5, 2011 3:56 AM

All replies