gridcolumn allows you to modify the comparators used in sorting.  Check out
Antun's post from June 2002 -
http://reloaded.laszlosystems.com/developers/community/forums/showthread.php?threadid=1068

That refers to the following code -
http://www.mylaszlo.com/lps-2.1.2/antun/olympics/olympics.lzo?lzt=source

I'll let somebody else to address your second grid question.

HTH,
-e



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?
> For example, my XML could provide a numeric timestamp which would be easier to
> sort, but I don't want to display that value.  When the user clicked the
> column, I would want to sort based on this other value, not the value
> displayed in the column.  Can this be done?  Is there an example somewhere of
> how this is done?
> 
> 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?  For example, I may be displaying 4 columns of
> information and by default the text in each column is bold.  When the user
> clicks on the row, I want to change the text to non-bold.  Is there an easy
> way to change the text characteristics for all of the columns of the selected
> row, or do I need to iterate over each of the columns, changing the text
> characteristic for each column separately?
> 
> 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

Reply via email to