3.0.5

Select a Single Column

I love this widget. Great work to the team.

Does anyone know how to select a single column? I only have figured how to select an entire row or table.

Thank you.
Mark
August 28,
Hello, Mark!
Unfortunatelly, I don't know the answer to your question, but it seems you know the answer to mine :)
I'm trying to find a method to select a row! If you really know, please, tell me!

Thanx.
Regards!
Juli
August 30,
Sure - here is what I have been able to figure out:

To select certain rows:
grid.setSelectionValues([1,2,3]);

To select them all:
var all = grid.getProperty("row/values");
grid.setProperty("selection/values", all);

I also use this code to highlight rows:

var highlight = function(){
if ( this.getProperty("row/order") == 2 || this.getProperty("row/order") == 3 || this.getProperty("row/order") == 6)
{ return "lightgrey"; }
return "white";
}

var row = new Active.Templates.Row;
row.setStyle("background", highlight);
grid.setTemplate("row", row);

Mark
August 30,
Mark,

there is no method yet to select the whole column. I can only think of adding (dynamically) a global CSS rule like

.active-column-1 {
background: blue;
}
Alex (ActiveWidgets)
September 3,
That is a good workaround I haven't tried. Thanks for the idea.
Mark
September 4,
var all = grid.getProperty("row/values");
grid.setProperty("selection/values", all);

The above does very nicely selection process.?
what about unselect all??
Radkrish (iFlex Solutions)
July 26,
To unselect all grid.setProperty("selection/values", []);

Kumar S (www.guyfromchennai.com)
November 12,

This topic is archived.

See also:


Back to support forum