On 1/31/06, James Howe <[EMAIL PROTECTED]> wrote:
I'm using a Grid in my application to display data from some dynamic XML.
In the application, the user can select an item from the grid (currently
single select, but ultimately multiple select). The XML gets refreshed
periodically and when the data refreshes I would like the users current
selection to remain (assuming the underlying data still exists), but I'm
at a loss to figure out how to do this.
One of the problems is that the current selection could move. For
example, the user could have picked the fifth item in the list, but after
refresh it may have moved to the third (perhaps earlier items are no
longer available, for example). Therefore, using the index of the
selected item isn't helpful. I could hold on to the object associated
with the current selection, but I'm assuming that once the data refreshes,
that particular object would no longer be part of the displayed
collection. Each item I display does have a unique ID associated with it,
so it would be possible to know which id's have been selected but I don't
see a way to select an item in a grid based on some value.
If anyone has any suggestions on ways to deal with this problem I would
appreciate hearing them. If I'm overlooking something simple, please let
me know.
Thanks!
--
James Howe
_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user
_______________________________________________ Laszlo-user mailing list [email protected] http://www.openlaszlo.org/mailman/listinfo/laszlo-user
