locked
Paging mobile objectlist problems RRS feed

  • Question

  • User-1168223385 posted

    Hi there I have a mobile web form that contanins a dropdownlist, a command button(find), an objectlist that is populated from an sql database depending on the dropdownlist selection, and a command button(back).  I am using vb as the language behined the form and visual studio 2005 to edit.  The problem I have is that I am using automatic paging on the object list as the results are rather large.  The number per page is set to 5 and the form pagnate property is set to true.  The paging works fine the problem is that I need the back command button, the find command button and the dropdownlist to appear on all the pages.  Automatic paging seems to split the whole form into sperate pages so the dropdownlist and find button are on the first page with the objectlist, the next page is just the objectlist and the last page is the objectlist and the back commad button.

    I understand that this is due to paging slitting the whole form not just the objectlist into multiple pages.

     Anyone know how i can have all the controls on ever page produced by automatic paging, I tried header and footer templates as somone sagested but i also need to access the controls constantly which is very difficult when they are stored in a header and footer

    This is realy frustrating me nad have posted this on mulktiple forums to no avail

    Please if anyone knows the answer I will be most greatfull

    Anymore information required just ask

    Lee

    Friday, December 29, 2006 8:37 AM

All replies

  • User33524104 posted
    I am also facing the same poblem. Please post the answer if someone knows
    Friday, December 29, 2006 2:04 PM
  • User33524104 posted

    Also, I have to show 2columns in the datagrid. The code i am using is given below

     

    <mobile:ObjectList runat="server" ID="gv" EnableViewState="false" LabelField ="Name" ItemsPerPage="5"

    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>

    It is not displaying the two columns in the grid. What is missing?

    Friday, December 29, 2006 2:11 PM
  • User33524104 posted

    1. Add BrowserCaps configurations in web.config with tables true

    2. Remove items per pasge setting from the attribute list of Objectlist.

     

    Monday, February 12, 2007 12:08 AM
  • User-1379409464 posted

    Hi Lee,

     I came across your post and am facing the same problem.

    Were you able to work this out? If so, can you post the possible steps that need to be taken.

     

    Thanks.

     

    Wednesday, March 14, 2007 2:23 PM
  • User-1168223385 posted

    Hi there

    Yes i dont have the code to do this anymore as i have finished this project bu i can teel you how i did it

    You add a DeviceSpecific Template to the bottom of the form

    Right click on it and click templating options.

    Add the default template to the header and select mobile html 3.2

    then click ok

    Then right click on template and edit header footer template

    add a button to the footer template to return to the main screen or what ever youe want it to do.

    Double click the button in the template as usual to enter coding

    close the template

    everthing in the template will show on all instances of the form including pager generated pages

    Hope this helps

    Just ask if anymore required

     

    Lee 

    Saturday, March 17, 2007 12:32 PM
  • User-2120656038 posted

    Hi Lee...Iam facing same problem...
    On my mobile webform form1 i have Divice Specific Control which have asp:DropdownList and ObjectList with allow paging, page size 5
    when click next page ...in that page not able to see the Dropdownlist...if i come back agaian then only i can see

    Plz tell me how to solve this issue

    Thanks in Advance

    Shashikanth

     

    Friday, July 27, 2007 9:18 AM
  • User664499748 posted

    Also, I have to show 2columns in the datagrid. The code i am using is given below

     

    <

    mobile:ObjectList runat="server" ID="gv" EnableViewState="false" LabelField ="Name" ItemsPerPage="5"

     

    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>

    It is not displaying the two columns in the grid. What is missing?

    you need to set 'AutoGenerateFields' to false

    Tuesday, July 31, 2007 11:14 AM