3.2.0

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
November 22,
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
November 28,

This topic is archived.

See also:


Back to support forum