dweston wrote:
> 
> I create a new prototype subclass like this: new
> [id is "list_grid"; Anm. Mark]
> 
> The paginated grid object has a refresh() method that I would like to
> call repeatedly using setinterval() (ajax refresh).  Is there a way I
> can use dom to get enumerate all of my paginated grid objects and call
> refresh on them?  I tried to use
> document.getElementsById('list_grid').refresh() but this did not work.

Using Prototype your call should look like this:
$('list_grid').refresh();

Unfortunately, the item with ID "list_grid" has no such property. On
instantiation grids are stored (by TGExtJS) in the variable 'ExtJSInst'.
You want to have a reload of the DataStore, so just call periodically:

ExtJSInst.DataStore['list_grid'].reload();

No need to do more.

In case you want to manipulate only a slice of the data displayed - you can
access it (with the row number as index) by the array:
ExtJSInst.DataStore['list_grid'].data.items

-- W-Mark Kubacki

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to