ggeller
Newbie
![*](https://jeasyui.com/forum/Themes/default/images/star.gif)
Posts: 3
|
![](https://jeasyui.com/forum/Themes/default/images/post/xx.gif) |
« Reply #1 on: May 20, 2014, 01:05:34 PM » |
|
Does the datagrid only except json data? I am iterating over a result set and building the cells as it iterates.
This what I am doing.
<table class="easyui-datagrid" border="0" cellpadding="2" cellspacing="0" style="width:1008px;height:500px" data-options="singleSelect:true"> <thead data-options="frozen:true"> <tr> <th data-options="width:40,height:40,align:'center'">I.D.</th> <th data-options="width:40,height:40,align:'center'">Start Date</th> <th data-options="width:40,height:40,align:'center'">End Date</th> <th data-options="width:40,height:40,align:'center'">Name</th> </tr> </thead> <thead> <tr> <th data-options="width:40,height:40,align:'center'" >Street</th> <th data-options="width:40,height:40,align:'center'" >City</th> <th data-options="width:40,height:40,align:'center'" >Zip Code</th> </tr> </thead>
<% while(details.next() ) { %> <tr> <td><%=details.getString(ID)%></td> <td><%=details.getString(START_DATE)%></td> <td><%=details.getString(END_DATE)%></td> <td><%=details.getString(NAME)%></td> <td><%=details.getString(STREET)%></td> <td><%=details.getString(CITY)%></td> <td><%=details.getString(ZIP_CODE)%></td> </tr> <% } %>
|