Hi
How can I change the grid (subfile) page number when I go to the next page?
Currently it doesn't change when I go to the the next page or previous page and it always stays at page1.
Is it supposed to change by default?
Thanks
How to change the grid (subfile) page number?
-
- Profound User
- Posts: 30
- Joined: Mon Apr 01, 2013 9:50 am
- First Name: Siavash
- Last Name: Askari
- Company Name: Erb Transport
- City: New Hamburg
- State / Province: Ontario
- Country: Canada
- Contact:
How to change the grid (subfile) page number?
Siavash Askari
-
- Experienced User
- Posts: 2711
- Joined: Wed Aug 01, 2012 8:58 am
- First Name: Scott
- Last Name: Klement
- Company Name: Profound Logic
- City: Milwaukee
- State / Province: Wisconsin
Re: How to change the grid (subfile) page number?
Is this a page-at-a-time subfile? In that case, the front-end (the code that runs in the browser) doesn't know that you have more than one page, because you are only loading one page at a time, so it'll always say "page 1" in that case.
If this is a subfile where you load everything at once, and let PUI handling the paging, or one where you add a page each time the user pages down, then the page number should change automatically.
Does that help?
If this is a subfile where you load everything at once, and let PUI handling the paging, or one where you add a page each time the user pages down, then the page number should change automatically.
Does that help?
-
- Profound User
- Posts: 30
- Joined: Mon Apr 01, 2013 9:50 am
- First Name: Siavash
- Last Name: Askari
- Company Name: Erb Transport
- City: New Hamburg
- State / Province: Ontario
- Country: Canada
- Contact:
-
- Experienced User
- Posts: 2711
- Joined: Wed Aug 01, 2012 8:58 am
- First Name: Scott
- Last Name: Klement
- Company Name: Profound Logic
- City: Milwaukee
- State / Province: Wisconsin
Re: How to change the grid (subfile) page number?
Hello,
Just FYI, we have added a new "initial page number" property to subfiles. This is useful if you are coding a program where you load only one page of a subfile at a time, and still want to display a page number in the paging bar.
Your RPG program would have to calculate the page number (since Profound UI doesn't know what page you're on when you have a single-page-load) but once calculated, it can be bound to the "initial page number" property to show it on the screen.
This requires Profound UI version 4.5.2, which is available for download now.
Just FYI, we have added a new "initial page number" property to subfiles. This is useful if you are coding a program where you load only one page of a subfile at a time, and still want to display a page number in the paging bar.
Your RPG program would have to calculate the page number (since Profound UI doesn't know what page you're on when you have a single-page-load) but once calculated, it can be bound to the "initial page number" property to show it on the screen.
This requires Profound UI version 4.5.2, which is available for download now.
Who is online
Users browsing this forum: No registered users and 4 guests