with jsp
Hi I have to use it in jsp. Please guide me how to display the grid on jsp with dynamic contents.
Thanks
Thanks
Trilok
November 22,
<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>
This topic is archived.
ActiveWidgets is a javascript library for creating user interfaces. It offers excellent performance for complex screens while staying simple, compact and easy to learn. Deployed by thousands of commercial customers in more than 70 countries worldwide.
Copyright © ActiveWidgets 2021