How to change the grid (subfile) page number?

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
siavash
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?

Post 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
Siavash Askari
Scott Klement
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?

Post 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?
siavash
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:

Re: How to change the grid (subfile) page number?

Post by siavash »

Yes!
Thank you Scott
Siavash Askari
Scott Klement
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?

Post 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.
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 0 guests