RE: First page empty on ObjectList

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Rich (Rich_at_discussions.microsoft.com)
Date: 09/28/04

  • Next message: Rich: "Can't seem to get ItemDetailsTemplate to work for me :("
    Date: Tue, 28 Sep 2004 12:33:02 -0700
    
    

    Perhaps this is too obvious, but the mobile:form that contains the objectList
    has a paginate property that you must set to true :)

    "Jonah Olsson" wrote:

    > Hi!
    >
    > I can't figure out why the first page becomes empty when using Paging for
    > the ObjectList. It only occurs on mobiles not supported by the MIT. Here's
    > the code for the ObjectList I use:
    >
    > <mobile:ObjectList id="lstFiles" runat="server" ItemsPerPage="10"
    > LabelStyle-StyleReference="title"
    > CommandStyle-StyleReference="subcommand">
    > <DeviceSpecific>
    > <Choice Xmlns="http://schemas.microsoft.com/mobile/html32template">
    > <HeaderTemplate>
    > <mobile:Image id="imgCatImage" runat="server" Alignment="Center"
    > Visible="False"></mobile:Image>
    > <table width="100%" cellpadding="2" cellspacing="1">
    > </HeaderTemplate>
    > <ItemTemplate>
    > <TR>
    > <TD>
    > <mobile:Label ...></mobile:Label>
    > <mobile:Label ...></mobile:Label>
    > <mobile:Link ...></mobile:Link><br>
    > </TD>
    > </TR>
    > </ItemTemplate>
    > <AlternatingItemTemplate>
    > <TR bgcolor="#CCCCCC">
    > <TD>
    > <mobile:Label ...></mobile:Label>
    > <mobile:Label ...></mobile:Label>
    > <mobile:Link ...></mobile:Link><br>
    > </TD>
    > </TR>
    > </AlternatingItemTemplate>
    > <FooterTemplate>
    > </table>
    > <mobile:Link id="lnkBack" runat="server"
    > NavigateUrl="#frmStart">Tillbaka</mobile:Link>
    > </FooterTemplate>
    > </Choice>
    > </DeviceSpecific>
    > </mobile:ObjectList>
    >
    > Thanks for any kind of help.
    >
    > Regards,
    > Jonah Olsson
    >
    >
    >


  • Next message: Rich: "Can't seem to get ItemDetailsTemplate to work for me :("