3.2.0

Select all rows

Hi,

I want to implement a CTRL+A / Button "Select all" function. I tried:

this.selectAll = function(uncheck)
{
var obj =this.tableObj;

var numRows = obj.setProperty("row/count");

for(var i=0;i<numRows;i++)
obj.setSelectionIndex(i);

}

(this.tableObj being a reference to the widget object).

This does not do anything. What am I doing wrong?

Thanks,

Christian
Christian Boulanger
August 24,
See the source code of this -

http://thej2ee.com/awdemo/examples/myexamples/editable_cell_and_tricks.html

You will find lots of documented tricks in comments.
Sudhaker Raj
August 24,
Thanks Sudhaker,

your source code is a great tutorial!!

And Alex ... I have never seen such well designed widget before! If you update the documentation to reflect what it can do, that would be great. And ... put a "donate" button on your page!

Christian


Christian Boulanger
August 26,
I know this is old but I would of though just remember in code you are selecting all by a flag then change the style sheet for normal rows to match selected ones surly this would be a lot faster.
July 27,

This topic is archived.

See also:


Back to support forum