"grid" has got an attribute called "contentdatapath", which controls the replication-point for your grid (it defaults to "*", which means all nodes). But this attribute cannot be changed at runtime, see LPP-4317 ("http://www.openlaszlo.org/jira/browse/LPP-4317";). So we have to create a workaround by using "view_newhire_grid.content.rowparent.replicator.setDatapath(..)". "content" denotes the content-area for a grid, "rowparent" holds all rows in this content-area and "replicator" is an instance of "basegridrow" (or whatever is set as "basegrid#_rowclass") resp. an instance of "LzLazyReplicationManager" once replication has started.

André


[EMAIL PROTECTED] wrote:
Thanks! That helped a great deal. The longer explanation would be helpful
for future reference.

Thanks again,
Michael Sick

-----Original Message-----
From: André Bargull [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 18, 2007 3:21 PM
To: [EMAIL PROTECTED]
Cc: [email protected]
Subject: Re: performance of grid in OL

Hello Michael,
I bet this was quite slow for you, because you actually replicated a bunch of grids.
However, try this code to update your grid:
[code]
view_newhire_grid.content.rowparent.replicator.setDatapath( "managers:/response/resultset/[EMAIL PROTECTED]'"+ id + "']" );
[/code]

I could write a longer explanation for this line of code, but as you said you are new to OpenLaszlo, so I'm not sure if it was useful to speak about things like "LzLazyReplicationManager" etc. :-)

Best regards,
André

The attached/included use of OL's grid is pretty slow for a small table.
As
I grow the table/data set it gets very slow. I must be doing something
quite
wrong but it is not apparent to me from looking at existing examples. New
to
OL and any feedback greatly appreciated.

Thanks,

Michael Sick

--
Mit freundlichen Grüßen,

André Bargull


Intensis
Lösungen für Informationslogistik

Tel.:   +49 231 5522-900
Fax:    +49 231 5522-901
E-Mail: [EMAIL PROTECTED]
_________________________________
Intensis GmbH
Ruhrallee 9
44139 Dortmund

Amtsgericht Dortmund:
HRB 15547

Geschäftsführer:
Holger Schmitt

Reply via email to