CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> Tips & Solutions

 Managing PageSize and Page on Grids

Print topic Send  topic

Author Message
MichaelMcDonald

Posts: 638
Posted: 03/23/2013, 10:14 PM


You can have a hidden field GridPage or GridPageSize on a search form and set the form or hidden field Before Show Event thus:

(remember t0 substitute "Grid" with your actual grid containername.)

$GridPage = (CCGetFromGet("GridPage"));
formname->GridPage->SetValue($GridPage);

This way it re-appends to the URL when the search button is pressed.

I think this might work as well:
$formname->GridPage->SetValue(CCGetFromGet("GridPage"));

I don't use the PageSize option in the navigator, I put links in a separate cell in the grid header.
This way the page size option doesn't travel to the bottom of the page when the grid is expanded.
I put links with href Text to display static =10, 25, 50 so on and the links href source / parameters is set like : Parameter Source 10, Parameter Name GridPageSize, type = Expression.
_________________
Central Coast, NSW, Australia.

View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright 2003-2004 by UltraApps.com  and YesSoftware, Inc.