Objectlist Problems

Objectlist Problems

Post by Skw » Sun, 31 Dec 2006 05:09:00


I am usin a objectlist. I hve given paginate as true for the form and i have
some banners to be shown in the all the pages. But these controls are cming
only in the first page. i have tried the example given in the below page. But
it is not working.

http://www.yqcomputer.com/ (S(foj5csaanqyj0g55jsvgap45))/Default.aspx?url=doc/Pagination.aspx

Pasting the code which i have used

Code for sw:Accounts

<mobile:ObjectList runat="server" ID="gv" EnableViewState="false" LabelField
="Name" ItemsPerPage="1"
AutoGenerateFields="true" TableFields="Name;Site" OnItemSelect="Selected"
Font-Size="small" >
<Field Title="Name" DataField="Name" Visible="true" Name="Name" />
<Field Title="Site" DataField="MS Location" Visible="True"
Name="Site" />
<Field Title="Id" DataField="Id" Visible="false" Name="Id"/>
</mobile:ObjectList>

Code in the main page

<body>
<mobile:Form id="MyAccount" runat="server" Paginate="true"
PagerStyle-Font-Size="small" PagerStyle-NextPageText="To Page {0}"
PagerStyle-PreviousPageText="To Page {0}" >
<mobile:DeviceSpecific>
<Choice>
<HeaderTemplate>
<sw:Masterbanner ID="Masterbanner" runat="server" />
<br />
<sw:MasterNavigation ID="MasterNavigation" runat="server" />
<br />
<sw:Search ID="Search" runat="server" />
<br />
</HeaderTemplate>
</Choice>
</mobile:DeviceSpecific>
<sw:Accounts id="Accounts" runat="server" />
</mobile:Form>
</body>


I have 2 more problems.

1. In the first page, only the items in the Header is coming in some mobile
devices
2. In the list, only one column is shown in the objectlist. (column named
'Name') Beow is the code

<mobile:ObjectList runat="server" ID="gv" EnableViewState="false" LabelField
="Name" ItemsPerPage="1"
AutoGenerateFields="true" TableFields="Name;Site" OnItemSelect="Selected"
Font-Size="small" >
<Field Title="Name" DataField="Name" Visible="true" Name="Name" />
<Field Title="Site" DataField="MS Location" Visible="True"
Name="Site" />
<Field Title="Id" DataField="Id" Visible="false" Name="Id"/>
</mobile:ObjectList>
 
 
 

1. Edit fields in a mobile:ObjectList

2. Error using ObjectList control with Blackberry

This issue appears to be a problem with my employer's GPRS provider. Some handhelds actually work

I downloaded the Blackberry simulator and could browse some intranet sites without problem. The only problem I'm now having is using the simulator to browse sites that use Integrated Security - but that's another story...

3. Guid column missing after databind to objectlist

4. How to access controls inside a DeviceSpecific template of ObjectList?

5. mobile:objectlist

6. ObjectList and ItemSelect event

7. ObjectList custom paging

8. Objectlist does not display details fields

9. First page empty on ObjectList

10. How to show multiple columns using objectlist in mobile web applications

11. Javascript Error in Objectlist Control on Blackberry Device

12. May I edit a cell in ObjectList control?

13. mouseless objectlist

14. ObjectList

15. ObjectList & OledbReader