First page empty on ObjectList

Discussion in 'ASP .Net Mobile' started by Jonah Olsson, Sep 2, 2004.

  1. Jonah Olsson

    Jonah Olsson Guest

    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
    Jonah Olsson, Sep 2, 2004
    #1
    1. Advertising

  2. Jonah Olsson

    Rich Guest

    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
    >
    >
    >
    Rich, Sep 28, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. JJ
    Replies:
    0
    Views:
    359
  2. =?Utf-8?B?QWxleCBNYWdoZW4=?=

    ObjectList Data-Binding to a List<MyClass>

    =?Utf-8?B?QWxleCBNYWdoZW4=?=, Aug 17, 2007, in forum: ASP .Net
    Replies:
    6
    Views:
    746
    Steven Cheng[MSFT]
    Sep 5, 2007
  3. denix
    Replies:
    1
    Views:
    161
  4. b301
    Replies:
    0
    Views:
    1,189
  5. sherifffruitfly
    Replies:
    0
    Views:
    120
    sherifffruitfly
    Apr 25, 2007
Loading...

Share This Page