Sep 16, 2008, 7:06 PM
[CLOSED] GridPanel AutoExpandColumn
Hello,
Geoffrey, perhaps you can help me out again. I've got a GridPanel which is concealed within an collapsed Panel. When I expand the Panel the AutoExpandColumn does not appear to work.
Example.aspx:
Cheers,
Timothy
Geoffrey, perhaps you can help me out again. I've got a GridPanel which is concealed within an collapsed Panel. When I expand the Panel the AutoExpandColumn does not appear to work.
Example.aspx:
<%@ Page Language="C#" %>
<%@ Register assembly="Coolite.Ext.Web" namespace="Coolite.Ext.Web" tagprefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
Customers.DataSource = new object[]
{
new object[] { "Timothy Grant Vogelsang" }
};
Customers.DataBind();
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Word</title>
</head>
<body>
<p><a href="Example.aspx">Reload</a></p>
<form id="form1" runat="server">
<ext:ScriptManager ID="ScriptManager1" runat="server" />
<ExtJS:Panel ID="Panel1" runat="server" AutoHeight="True" AutoScroll="True" BodyStyle="padding: 5px;" Border="False" Collapsible="True" Collapsed="True" Title="Panel 1">
<Content>
<ExtJS:Store ID="Customers"
runat="server"
AutoLoad="True">
<Reader>
<ExtJS:ArrayReader>
<Fields>
<ExtJS:RecordField Name="DisplayName" />
</Fields>
</ExtJS:ArrayReader>
</Reader>
</ExtJS:Store>
<ExtJS:GridPanel ID="dgPermission"
runat="server"
StoreID="Customers"
AutoExpandColumn="DisplayName"
HideHeaders="True"
StripeRows="True">
<ColumnModel>
<Columns>
<ExtJS:Column ColumnID="DisplayName" DataIndex="DisplayName" MenuDisabled="True" />
</Columns>
</ColumnModel>
</ExtJS:GridPanel>
</Content>
</ExtJS:Panel>
</form>
</body>
</html>
Any help would be appreciated, this one is a proper bugger.Cheers,
Timothy