Grid with multi-row-marker selection mode in IE8

Can anyone verify this??

I have a grid with multi-row-marker selection mode turned on. I am showing 2 columns, but only using the first. I wrote an onRowClicked function to handle the event, but this does not fire in IE8 when you click in the first column that has the checkbox and my data. If I click on the second column it fires. Works fine in FireFox and other standards compliant browsers.

June 24,
Ok, just tried some other events (onCellClicked...onControlClicked) and nothing is firing in IE8. The row color changes as it should...the checkbox checks and unchecks as it should, but my function doesn't seem to go.

Here's my code:
var grid= new AW.UI.Grid;
grid.setHeaderText(["Username", "ID", "Rights", "Default"]);
grid.setCellFormat([string, string, string, string]);
grid.onRowClicked = function(event, row){
    alert(this.getCellValue(1, row))
grid.setCellImage(image, 0); 	
June 24,
In that case need a different event:

grid.onSelectedRowsChanged = function(arrayOfRowIndices){
alert( arrayOfRowIndices);
June 24,
That's great except I need to get the value of the row that was clicked on. onSelectedRowsChanged gives me an array of all the selected rows which doesn't really help me.
June 24,
You can get this row number with an easy step:

Please check also:
June 24,
Excellent! That does work, but is there any way to still check for a clicked event? My grid is being populated with rows already marked. So when it loads it fires the event handler function.
June 25,
Anybody else have anything to add??

Like I said before...I need to work with the onRowClicked event. The onSelectedRowsChanged is great and all, but it fires when the grid is loaded.

Also...still dont know why the onRowClicked event works fine in Firefox and not IE.

June 28,
OK...finally getting back to this...I dove into the code and found that anytime the multi-row-marker changes it is being refreshed. This means that when the grid loads and after every click it is immediately being refreshed. Once I commented out the refresh, my onRowClicked event works fine in IE.

The only issue is that now the row is selected, but the check box doesn't change. This actually seems to work out to my advantage though. When the row is clicked I can fire off my actions and then force a refresh when they are done which reloads the data in the table and now my check box is checked.

Like I said, it seems like a hack, but for now it works.
July 21,

This topic is archived.

See also:

Back to support forum


Version 2

Looking for AW 2.6 ?
The old site is here.