Problems to run grid in firefox.
Good afternoon,
When I run my grid on firefox, I can't see the rollbar, and when I use the arrow down or arrow up keys in keyboard he goes up and down in the roll instead of passing the itens. I would like to know what I'm doing wrong, because I've seen examples runing ok.
My code:
// define data formats
var str = new AW.Formats.String;
var num = new AW.Formats.Number;
obj.setCellFormat([str, str, str, num]);
// provide cells and headers text
obj.setCellText(myData);
obj.setHeaderText(myColumns);
// set number of rows/columns
obj.setRowCount(<?=$rows?>);
obj.setColumnCount(6);
obj.setCellEditable(false);
// enable row selectors
obj.setSelectorVisible(true);
obj.setSelectorText(function(i){
return this.getRowPosition(i)+1}
);
function focusGrid() {
obj.element().focus();
}
// set headers width/height
obj.setSelectorWidth(28);
obj.setHeaderHeight(20);
// set row selection
obj.setSelectionMode("single-row");
// set click action handler
obj.onCellClicked = function(event, col, row){
window.status = this.getCellText(col, row)
};
// write grid html to the page
strmydata = myData.toString();
document.write(obj);
Thanks
When I run my grid on firefox, I can't see the rollbar, and when I use the arrow down or arrow up keys in keyboard he goes up and down in the roll instead of passing the itens. I would like to know what I'm doing wrong, because I've seen examples runing ok.
My code:
// define data formats
var str = new AW.Formats.String;
var num = new AW.Formats.Number;
obj.setCellFormat([str, str, str, num]);
// provide cells and headers text
obj.setCellText(myData);
obj.setHeaderText(myColumns);
// set number of rows/columns
obj.setRowCount(<?=$rows?>);
obj.setColumnCount(6);
obj.setCellEditable(false);
// enable row selectors
obj.setSelectorVisible(true);
obj.setSelectorText(function(i){
return this.getRowPosition(i)+1}
);
function focusGrid() {
obj.element().focus();
}
// set headers width/height
obj.setSelectorWidth(28);
obj.setHeaderHeight(20);
// set row selection
obj.setSelectionMode("single-row");
// set click action handler
obj.onCellClicked = function(event, col, row){
window.status = this.getCellText(col, row)
};
// write grid html to the page
strmydata = myData.toString();
document.write(obj);
Thanks
Eric Saboia
May 30,