PDA

View Full Version : [CLOSED] GridPanel ColumnHeader Width



jchau
Jul 01, 2014, 2:13 PM
If the top level column text is very long, is there a way to stretch the child column headers to fit underneath it? Right now, there's a gap. Also, is there a way to turn on text wrap only for the child headers?



<html>


<head id="Head1" runat="server">
<title>Test Page </title>
</head>
<body>
<form id="Form1" runat="server">
<ext:ResourceManager runat="server"></ext:ResourceManager>
<ext:GridPanel runat="server" Title="Test" Height="400" Width="600">
<Store>
<ext:Store runat="server">
<Model>
<ext:Model runat="server"></ext:Model>
</Model>
</ext:Store>
</Store>
<ColumnModel>
<Columns>
<ext:Column Text="Long Name ASDF ASDF ASDF ASDF ASDF ASDF ASDF">
<Columns>
<ext:Column Text="Child1" Flex="1"></ext:Column>
<ext:Column Text="Child2" Flex="1"></ext:Column>
</Columns>
</ext:Column>
<ext:Column Text="Long Name ASDF ASDF ASDF ASDF ASDF ASDF ASDF">
<Columns>
<ext:Column Text="Child3"></ext:Column>
<ext:Column Text="Child4"></ext:Column>
</Columns>
</ext:Column>
</Columns>
</ColumnModel>
</ext:GridPanel>
</form>
</body>
</html>

Daniil
Jul 01, 2014, 3:43 PM
Hi @jchau,

Yes, Flex doesn't work for inner Columns. There is an Issue for that:
https://github.com/extnet/Ext.NET/issues/358

And a bug report:
http://www.sencha.com/forum/showthread.php?274106

Maybe, adjust the width of inner Columns in a GridPanel's ViewReady handler?


Also, is there a way to turn on text wrap only for the child headers?

Does Wrap="true" for inner Columns not work?

jchau
Jul 01, 2014, 6:55 PM
So how can I fix this issue where the columns don't align because the actual columns are following inner column header width?

http://forums.ext.net/attachment.php?attachmentid=13241&stc=1

Daniil
Jul 02, 2014, 7:18 PM
Please clarify have you tried that?



Maybe, adjust the width of inner Columns in a GridPanel's ViewReady handler?