Page 1 of 1
How to change the grid (subfile) page number?
Posted: Thu Apr 11, 2013 9:39 am
by siavash
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
Re: How to change the grid (subfile) page number?
Posted: Thu Apr 11, 2013 12:02 pm
by Scott Klement
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?
Re: How to change the grid (subfile) page number?
Posted: Thu Apr 11, 2013 12:28 pm
by siavash
Yes!
Thank you Scott
Re: How to change the grid (subfile) page number?
Posted: Fri Apr 19, 2013 5:45 pm
by Scott Klement
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.