RE: First page empty on ObjectList
From: Rich (Rich_at_discussions.microsoft.com)
Date: 09/28/04
- Previous message: Sara T.: "Re: Problem with render page to html"
- In reply to: Jonah Olsson: "First page empty on ObjectList"
- Messages sorted by: [ date ] [ thread ]
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
>
>
>
- Previous message: Sara T.: "Re: Problem with render page to html"
- In reply to: Jonah Olsson: "First page empty on ObjectList"
- Messages sorted by: [ date ] [ thread ]