![]() |
Can anyone figure out what's wrong in below code ?? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Can anyone figure out what's wrong in below code ?? (/showthread.php?tid=49176) |
Can anyone figure out what's wrong in below code ?? - El Forum - 02-10-2012 [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!! Can anyone figure out what's wrong in below code ?? - El Forum - 02-10-2012 [eluser]mast3rpyr0[/eluser] Not sure what browser you used there, but with a little styling it will look just fine in chrome. Can anyone figure out what's wrong in below code ?? - El Forum - 02-10-2012 [eluser]Unknown[/eluser] Thanks for the response, Am using IE7, I had done the silly mistake so was not getting it(<th width="100%"> instead of <th width="100">. Nywz I figured it out. Want to implement sortable functionality to each column, guess it's not possible for static data. Can you suggest one? |