View Full Version : Adding Grid to existing HTML page

12 Feb 2010, 12:22 PM
I'm new to this and have successfully created a Grouped GridPanel and added it to a Viewport so that it will scale with the browser size changes. So now my next objective is to be able to add all of this to an existing page. The page layout is old-fashioned table-based that's generated by Oracle Portal so I can't do much with that. As a result my grid must end up in a TD element, however I can only get the grid to display when I use renderTo: document.body. Can anyone provide an example of how to do this specifically or how to get the grid to render inside of a designated DIV?

12 Feb 2010, 6:00 PM
If the div has an id, you can use Ext.get() in the renderTo.

For example:

<div id="mydiv"></div>