I'm struggling to figure out how to change the width and height of the Ext JS grid (or any Ext JS widget for that matter). They always seem to remain at a fixed height and width. Has anyone done this before? I'm just trying to get a proof of concept built for evaluating this framework against other JavaScript UI frameworks.
Here is the example I'm playing with now:
http://dev.sencha.com/deploy/ext-4.1.0-gpl/examples/grid/cell-editing.html
There are different div HTML tags that make up the grid, but unfortunately the columns and the data are built dynamically via JavaScript and you cannot see the markup by viewing the HTML source code. The div HTML tags below are the 4 components wrapping around the grid columns and data. I am able to change the styles within Firebug and Google Chrome developer tools, but not in the actual CSS.
DIV HTML tags that make up Ext JS grid:
gridpanel-1010_header
toolbar-1018
headercontainer-1011
gridpanel-1010-body
Here are the styles used in the "cell-editing.html" example. I'm guessing it must be in here somewhere.
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Cell Editing Grid Example</title>
<link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css" />
<link rel="stylesheet" type="text/css" href="../shared/example.css" />
<link rel="stylesheet" type="text/css" href="../ux/css/CheckHeader.css" />
<script type="text/javascript" src="../../bootstrap.js"></script>
<script type="text/javascript" src="cell-editing-keith.js"></script>
</head>
<body>
<div id="editor-grid"></div>
</body>
</html>
Ext.create('Ext.panel.Panel', {width: '20em'})
– Juan Mendes