PDA

View Full Version : Wish List Item - ie. the Grid


sgentile
12-26-2008, 03:29 PM
Probably this is because I'm just used to jQuery :)

But I really like what the ExtJs controls can do. However, my request is more along the lines of :

appying a grid to a pre-existing table structure.

ie. Ruby on Rails or ASP.NET MVC (or asp...) :

<table id="sampleTable">
<thead>
<th>Name</th>
</thead>
<tbody>
<% foreach(item in items) {%>
<tr>
<td><%= item.Name%>
<tr>
<%}%>
</tbody>
</table>

With that already in place, is it possible to apply a grid to it ?

Ext.grid.GridPanel
...
table: sampleTable,
width:600,
height:300,
frame:true,
title:'Framed with Checkbox Selection and Horizontal Scrolling',
iconCls:'icon-grid'
Which would apply the table to my existing html data structure instead of writing it all in javascript ?

rob2576
12-26-2008, 03:39 PM
sgentile,

Is this what you are looking for?

http://www.extjs.com/deploy/dev/examples/grid/from-markup.html

sgentile
12-26-2008, 05:46 PM
looks great!

Thanks :)