:: Forum >>

with jsp

Hi I have to use it in jsp. Please guide me how to display the grid on jsp with dynamic contents.

Thanks
Trilok
Thursday, November 22, 2007
like this:
<script>

    var grid = new AW.UI.Grid;
    grid.setId("myGrid");
    <%
        for(int i = 0 ; i < columnCount ; i++){
            for(int j = 0 ; j < rowCount ; j++){
                
    %>
    grid.setCellData("<%=data[j][i]%>",<%=i%>,<%=j%>);
    <%
            }
        }
    %>
    grid.setColumnCount(<%=columnCount%>);
    grid.setRowCount(<%=rowCount%>);
    grid.setSelectorVisible(true);
    grid.setSelectorWidth(50);
    grid.setSelectorText(function(r){return this.getRowPosition(r)+1}); // show row numbers
    grid.setSize(screen.width-100*3, screen.height-250*2);
    grid.setCellEditable(true);
    grid.refresh();

</script>
sayNever
Wednesday, November 28, 2007

This topic is archived.


Back to support forum

Forum search