3.0 beta 2

I can not View My Grid WHAY?

The code is as like but i cna not see any thing

<%@page import="java.util.*,sun.jdbc.rowset.*;" contentType="text/html; charset=UTF-8"%>
<%@include file="/eaf/as_v1/check_session.jsp"%>
<jsp:useBean id="adminBean" class="CdfBean.AdministratorBean"/>
<jsp:useBean id="inqBean" class="CdfBean.InquiryBean"/>

<!--<jsp:useBean id="ccBean" scope="session" class="CdfBean.HUCCBean"/>-->

CachedRowSet usr = new CachedRowSet();
usr = adminBean.getAlluserinof();
int intRowSize = 0;


<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!--link rel="stylesheet" href="/ems/css/ems.css" type="text/css"-->
<link rel="stylesheet" href="../css/ems.css" type="text/css">
.title1 {

BACKGROUND-POSITION: right top; PADDING-LEFT: 10px; FONT-WEIGHT: bold; FONT-SIZE: 12px; BACKGROUND-IMAGE: url(images/title1.gif); TEXT-TRANSFORM: lowercase; COLOR: #7c8184; LINE-HEIGHT: 16px; BACKGROUND-REPEAT: no-repeat; FONT-STYLE: normal; FONT-FAMILY: verdana, arial, helvetica, sans-serif; HEIGHT: 25px; BACKGROUND-COLOR: #a4ceec

<!-- ActiveWidgets stylesheet and scripts -->
<link href="runtime/styles/flat/grid.css" rel="stylesheet" type="text/css" ></link>
<script src="runtime/lib/grid.js"></script>

<!-- grid format -->
.active-controls-grid {height: 95%; font: menu;}

.active-selection-true, .active-selection-true .active-row-cell {
background-color: yellow!important;

.active-column-0 {width: 80px; text-align: center;}
.active-column-1 {width: 250px; text-align: center;}
.active-column-2 {width: 80px; text-align: center;}
.active-column-3 {width: 80px; text-align: center;}
.active-column-4 {width: 80px; text-align: center;}

.active-grid-column {border-right: 1px solid threedlightshadow;}
.active-grid-row {border-bottom: 1px solid threedlightshadow;}


<body leftmargin=0 topmargin=2>
<table width="816" height="599" border="2" cellpadding="2" cellspacing="2" bordercolor="#ACB9D1">
<td bgcolor="#A3B2CC"><div align="center"><strong>View Users </strong></div></td>
<td height="568" bordercolor="#A7B5CE">
<!-- grid data -->
var myData = [
intRowSize = usr.size() ;
String strColor="black";
String strLinkColor = "blue";
String strSeverity = "";
while (usr.next())
["<a href='add_update_user3.jsp?txtLoginID=<%=usr.getString("LOGIN_ID")%>' target='_parent'><%=usr.getString("LOGIN_ID")%></a>",
var myColumns = [
"Login Id", "User name","Status", "Supervisor Name", "Supervisor teliphone", "Mobile teliphone"

// create ActiveWidgets Grid javascript object
var obj = new Active.Controls.Grid;

// set number of rows/columns
obj.setRowProperty("count", <%=intRowSize%>);
obj.setColumnProperty("count", 6);

// provide cells and headers text
obj.setDataProperty("text", function(i, j){return myData[i][j]});
obj.setColumnProperty("text", function(i){return myColumns[i]});

// set headers width/height

// allow multiple selection
//obj.setSelectionProperty("multiple", true);

// define action handler

// assign action handler to grid
//obj.setAction("selectionChanged", message2);

// write grid html to the page

</script> </td>

Abdul Rehman MOBILY
March 13,

This topic is archived.

See also:

Back to support forum


Version 2

Looking for AW 2.6 ?
The old site is here.