Error with two grids on the same page
Hi everybody, i'm using de AW GRID with PHP, i've created a function used to creates the grid and generate dinamic id's for it, so i can use more than just one grid per page, the problem is that when i have more than 1 grid on the page, all the grids on the page get locked, so i can resize a column, or even click on a cell.
This ocurres only when i have more than 1 grid per page, i'll post the javascript code that i'm using to generate the two grids, so if somebody can help me.
Bellow is the code that my php function was returned...thx...
This ocurres only when i have more than 1 grid per page, i'll post the javascript code that i'm using to generate the two grids, so if somebody can help me.
Bellow is the code that my php function was returned...thx...
<script>
var obj_headers_1 = ["Tipo","Quantidade de eventos"];
var obj_data_1= [ ["","1"],["CORE CTO","1"] ];
var grid_1 = new AW.UI.Grid;
grid_1.setId('awgrid_1');
grid_1.setHeaderText(obj_headers_1);
grid_1.setSize(100, 150);
grid_1.setCellText(obj_data_1);
grid_1.setColumnCount(obj_headers_1.length);
grid_1.setRowCount(obj_data_1.length);
grid_1.setColumnWidth(100,0);
grid_1.setColumnWidth(100,1);
document.write(grid_1);
</script>
<script>
var obj_headers_2 = ["ID Acesso","Nome","LP","Tipo","Data"];
var obj_data_2 = [
["","inventario teste 1","","Primário","31/07/2006 00:00:00"],
["","inventario teste 2","","Primário","31/07/2006 00:00:00"],
["","inventario teste 2","","Redundante","01/05/2006 12:00:20"]
];
var grid_2 = new AW.UI.Grid;
grid_2.setId('awgrid_2');
grid_2.setHeaderText(obj_headers_2);
grid_2.setSize(100, 150);
grid_2.setCellText(obj_data_2);
grid_2.setColumnCount(obj_headers_2.length);
grid_2.setRowCount(obj_data_2.length);
grid_2.setColumnWidth(55,0);
grid_2.setColumnWidth(120,1);
grid_2.setColumnWidth(115,2);
grid_2.setColumnWidth(10,3);
grid_2.setColumnWidth(70,3);
document.write(grid_2);
</script>
Gabriel Ricci da Silva
October 16,