Click on row header

Hi all,

I would like to know why the following code makes the row header lose its style. All I want to do is catching a click on the row header (not column header).

function myFunction(){

var row = new Active.Templates.Row;
row.setEvent("onmousedown", myFunction);
obj.setTemplate("left/item", row);

Any clue ? :o)
March 23,
The row header is implemented with an Active.Templates.Item template. So your code should look like

var header = new Active.Templates.Item;
obj.setEvent("onmousedown", myFunction);
obj.setTemplate("left/item", header);

Active.Templates.Row is the whole row, i.e. list of cells.
Alex (ActiveWidgets)
March 23,
I want to get the row index by clicking the row header. I used the code listed above. I can get the alert message, but I can't get the index. I also tried the following code:

obj2.setAction("click", function(src){
var rowIndex = src.getRowProperty("index");
var colIndex = src.getColumnProperty("index");

alert("row: "+rowIndex+" col: "+colIndex);

I can get the alert message only when I click the data, not the row header. What I am trying to do is to put a checkbox for the whole table, and the first column is also a checkbox column. When I click the checkbox for the whole table, I want all the checkbox in the first column be selected. Any suggestions?

Thanks in advance.

March 26,

This topic is archived.

See also:

Back to support forum