PDA

View Full Version : [Solved] Newbie - PanelGrid



pw81
6 Aug 2009, 11:16 AM
Hi

Im a newbie in extJs 3.

Im looking for a function that is similar to ext 1.x TableGrid.

I want to generate grid over the HTML table (printed generated automaticly by php). On extJs 1.x there was

var grid = new Ext.grid.TableGrid(tableId);
grid.render();

I know that in extJs 3 there is PanelGrid but I have problems with it because it wants dataStore from XML or JSON and I dont want that. I've read many examples but I cant find solution.


<table id="grid-table">
<thead>
<tr><th>1</th><th>2</th></tr>
</thead>
<tbody>
<tr><td>test</td><td>test2</td></tr>
</tbody>
</table>


Can somebody help me with proper use PanelGrid with this example?
Thanks in advance

Condor
6 Aug 2009, 11:27 AM
Why not use Ext.ux.grid.TableGrid (in examples/ux/TableGrid.js)?

pw81
6 Aug 2009, 11:50 AM
hmm as I mention Im a newbie :) ux is some kind of plugin?
I dont see ux in API documentation http://extjs.com/deploy/dev/docs/ (http://extjs.com/forum/../deploy/dev/docs/)

Error /Ext.ux.grid is undefined/


EDIT:

Ok I've got it! Thx for help!