You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Adam X <vb...@gmail.com> on 2016/12/07 13:21:40 UTC

Ajax event for inplace Grid page change

Howdy,

I'm trying to implement status counter underneath a grid, something like:

Showing 5 - 10 of 100

My grid is handled via ajax (inPlace="true").

Is there a page change event or something similar that grid's pager
emits so that I can hook up to it? Something like:

void onPageChangeFromMyGrid(int pageNo) { // ajax
}

Ultimately I need to update a zone with the counter message and I
can't seem to figure out how to construct a callback method for this.

Adam

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Ajax event for inplace Grid page change

Posted by JumpStart <ge...@gmail.com>.
This example shows how to get around some of the failings of GridPager with a small amount of effort:

	http://jumpstart.doublenegative.com.au/jumpstart7/together/ajaxcomponentscrud/persons

HTH,

Geoff

> On 7 Dec 2016, at 9:21 PM, Adam X <vb...@gmail.com> wrote:
> 
> Howdy,
> 
> I'm trying to implement status counter underneath a grid, something like:
> 
> Showing 5 - 10 of 100
> 
> My grid is handled via ajax (inPlace="true").
> 
> Is there a page change event or something similar that grid's pager
> emits so that I can hook up to it? Something like:
> 
> void onPageChangeFromMyGrid(int pageNo) { // ajax
> }
> 
> Ultimately I need to update a zone with the counter message and I
> can't seem to figure out how to construct a callback method for this.
> 
> Adam
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org