Re: T5: change a grid's rowsPerPage property dynamically?

2007-06-20 Thread Martin Grotzke
On Tue, 2007-06-19 at 10:45 +0200, Martin Dietze wrote:
 Hi,
 
  I am using a Grid component for displaying a larger set of
 data. On my page I have form which I use to allow the user to
 set the perferred page size. When the user selects a new
 setting the form submits and changes the page class'es
 _rowsPerPage property which is used by the grid in the template
 to determine its number of rows like this:
 
 |  table t:type=grid
 |   row=partner
 |   source=partners
 |   rowsPerPage=${rowsPerPage}
 |   model=partnersRowModel
 
 My _rowsPerPage property get set to the right value after
 submit, however the grid seems to ignore any changes from the
 default it has been created with. Could it be the rowsPerPage
 setting is cached somehow? How can I get the component to honor
 new settings?
Would it be possible to have the grid component in your page class
so that you can update the rowsPerPage property directly?

Cheers,
Martin




signature.asc
Description: This is a digitally signed message part


Re: T5: change a grid's rowsPerPage property dynamically?

2007-06-20 Thread Martin Dietze
On Wed, June 20, 2007, Martin Grotzke wrote:

 Would it be possible to have the grid component in your page class
 so that you can update the rowsPerPage property directly?

I tried this, too, but calling the setRowsPerPage() method from
within my page class had no effect either.

Cheers,

Martin

-- 
--- / http://herbert.the-little-red-haired-girl.org / -
=+= 
What would happen in a battle between an Enterprise security team, who always 
get killed soon after appearing, and a squad of Imperial Stormtroopers, who 
can't hit the broad side of a planet?  --Tom Galloway 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T5: change a grid's rowsPerPage property dynamically?

2007-06-20 Thread Martin Dietze
On Wed, June 20, 2007, Martin Dietze wrote:

 I tried this, too, but calling the setRowsPerPage() method from
 within my page class had no effect either.

Folowing up my own posting - the problem is still unsolved, has
anyone found a solution to this?

Cheers,

Martin

-- 
--- / http://herbert.the-little-red-haired-girl.org / -
=+= 
In an organization, each person rises to the level of his own incompetency.
   -- The Peter Principle 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



T5: change a grid's rowsPerPage property dynamically?

2007-06-19 Thread Martin Dietze
Hi,

 I am using a Grid component for displaying a larger set of
data. On my page I have form which I use to allow the user to
set the perferred page size. When the user selects a new
setting the form submits and changes the page class'es
_rowsPerPage property which is used by the grid in the template
to determine its number of rows like this:

|  table t:type=grid
|   row=partner
|   source=partners
|   rowsPerPage=${rowsPerPage}
|   model=partnersRowModel

My _rowsPerPage property get set to the right value after
submit, however the grid seems to ignore any changes from the
default it has been created with. Could it be the rowsPerPage
setting is cached somehow? How can I get the component to honor
new settings?

Cheers,

Martin

-- 
--- / http://herbert.the-little-red-haired-girl.org / -
=+= 
Hlade's Law: If you have a difficult task, give it to a lazy person;
   they will find an easier way to do it. 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]