:: Forum >>
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
Saturday, August 28, 2004
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
Monday, August 30, 2004
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
Monday, August 30, 2004
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)
Friday, September 3, 2004
That is a good workaround I haven't tried. Thanks for the idea.
Mark
Saturday, September 4, 2004
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)
Tuesday, July 26, 2005
To unselect all grid.setProperty("selection/values", []);
Kumar S (www.guyfromchennai.com)
Saturday, November 12, 2005
This topic is archived.
Back to support forum
Forum search