Tables and Selecting

For questions and postings not covered by the other forums
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Tables and Selecting

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:06 pm

by MichaelHill >> Mon, 25 Mar 2002 4:06:51 GMT

Afternoon All,

Is there anyway of changing the way a row looks when it is selected in a row in a table. At present it shows up as a solid blue line.

Cheers

Michael Hill
Gallagher Group Ltd

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Tables and Selecting

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:06 pm

by cdshearer >> Mon, 25 Mar 2002 4:32:31 GMT

Hi Michael

The answer to this really depends on what version of JADE you're using. From memory, I think it was version 5.1 that introduced the selectMode property.

With the selectMode property on the Table control, you can change it to SelectMode_None. Then when the user clicks on a cell in the table, no selection is shown. You can then trap the click event, or whatever, and highlight the row, column, or cell in whatever colour you want, by changing the backColor property. You'll need to keep track of the previous selection so that you can "unselect" it when the user selects the new row/column/cell, etc.

Having said this, it would be nice if there was a selectColor property on the Table control to give us more control over this behaviour.

Hope this helps...

Craig Shearer


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 23 guests

cron