First page empty on ObjectList

J

Jonah Olsson

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
 
R

Rich

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

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,743
Latest member
WoodrowMea

Latest Threads

Top