After I sent my original message I found a reference to 'sortpath'. Once
I saw that, I figured the best approach would be to do something like you
suggest, send a numeric value for sorting. Works great. Thanks for the
help.
I guess I'll have to try iterating to see how that works. Seems like
there should be some way to do something to an entire row without having
to do it myself, but there doesn't seem to be a way to do it.
Thanks again.
On Mon, 09 Jan 2006 13:40:52 -0500, Jeff Freedman
<[EMAIL PROTECTED]> wrote:
James,
Rather than rewriting the comparators, I simply send the number of
seconds since '1/1/1990 00:00:00' back from my data call (via stored
procedure date arithmetic) along with my timestamp. By using the
sortpath attribute on the gridcolumn, the text column then sorts by the
numeric number of seconds.
<gridcolumn width="175" sortpath="@secondsStart">
<text datapath="@startTime" resize="true" />
</gridcolumn>
As to your second question, I *believe* that you need to iterate.
Jeff
[...]
On Mon, 9 Jan 2006, James Howe wrote:
My Laszlo application makes use of a Grid to display information derived
from XML. On if the columns in the grid is a date/time stamp.
However, the
text of the timestamp isn't easily sortable so when a user clicks on
the Date
column, the rows don't sort in the correct manner. Is there a way to
alter the sorting mechanism for a particular column to use a different
algorithm?
[..]
My second Grid question involves the display of information in each of
the columns. Is there an easy way to change the font/fontstyle for the
items displayed in a particular row? [...]
--
James Howe
_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user