[eluser]Unknown[/eluser]
I am trying to get the flexigrid loaded, using the following code using scriptlet..
code is
<table id="flexme1">
<thead>
<tr>
<%for(int i=0;i<displayColumnNamesList.size();i++) {%>
<th width="100%">
<%=displayColumnNamesList.get(i).toString().trim()%>
</th>
<%}%>
</tr>
</thead>
<tbody>
<%
for(int i=0;i<resList.size();i++){
EtassTradesVO etassTradesVO=(EtassTradesVO)resList.get(i);%>
<tr>
<%for(int j=0;j<columnList.size();j++){%>
<td width="100%">
<%=etassTradesVO.getAttribute(columnList.get(j).toString().trim())%>
</td>
<%}%>
</tr>
<%}%>
</tbody>
</table>
which generated the code as follows,
<table id="flexme1">
<thead>
<tr>
<th width="100%">FO Trade No</th>
<th width="100%">Version</th>
<th width="100%">Original Trade No</th>
<th width="100%">eTass Status</th>
<th width="100%">Trade Status</th>
</tr>
</thead>
<tbody>
<tr>
<td>644132</td>
<td>1161</td>
<td>0</td>
<td>Error</td>
<td> </td>
</tr>
<tr>
<td>644132</td>
<td>1169</td>
<td>0</td>
<td>Error</td>
<td> </td>
</tr>
</tbody>
</table>
But the output as a grid is not as expected the table data is not arranged inline with table header and the resizing doesn work.. I have attached the snapshot, can anyone help on this quickly ??
Many Thanks in Advance!!