3.0.5

row click event not working

I've seen many topics regarding this however, none seem to work with version 2 beta in IE 5.5. I've tried the following:
obj.setAction('onclick', function(src){
    alert(src);
});

obj.setAction('click', function(src){
    alert(src);
});

obj.setAction("onclick", function(src){
    alert(src);
});

obj.setAction("click", function(src){
    alert(src);
});


When I say they don't work, I mean that nothing happens when I click the row... not even a javascript error. Anybody have any ideas? Thanks very much.
Joe Hudson
October 18,
Joe,
Try this. Many of the examples on the forum pertain to V1 of the widget. Have a look in /examples/quickref/grid.htm in the source distribution of V2 for more up to date code examples.

myGrid.onRowClicked = function(event, index) {
//Get the contents of cell with Column index '0' and RowIndex 'index'.
var result = myGrid.getCellValue(0, index);
}


Cheers,
BT
BT
October 18,
Thank you so much, BT. That worked great.

Joe
Joe Hudson
October 18,

This topic is archived.

See also:


Back to support forum