Jul 04, 2015, 8:14 AM
[CLOSED] columnlayout troubles
Hello
I am calling creating a panel with a gridpanel within a tabpanel. The gridpanel should only occupy a third of the parent via columnlayout and columnwidth = 0.33. But somehow it occupies always 100%. Does anybody know where I am making the error in the configuration via directmethod?
Thank you very much.
best regards.
Test case: (click on tab2)
I am calling creating a panel with a gridpanel within a tabpanel. The gridpanel should only occupy a third of the parent via columnlayout and columnwidth = 0.33. But somehow it occupies always 100%. Does anybody know where I am making the error in the configuration via directmethod?
Thank you very much.
best regards.
Test case: (click on tab2)
<%@ Page Language="C#" %>
<script runat="server">
[DirectMethod]
public void PopulateTab()
{
Ext.Net.Panel pnl = X.GetCmp<Ext.Net.Panel>("pTab2");
pnl.Layout = "ColumnLayout";
GridPanel gp1 = new GridPanel
{
Title = "Gridpanel 1",
ColumnWidth = 0.33
};
pnl.Items.Add(gp1);
pnl.UpdateContent();
}
</script>
<!DOCTYPE html>
<html>
<head runat="server">
<title>Test</title>
</head>
<body>
<ext:ResourceManager runat="server" Locale="de-ch" />
<ext:Tabpanel runat="server">
<Items>
<ext:Panel runat="server" Title="Tab1">
<Items>
<ext:Label runat="server" Text="empty"></ext:Label>
</Items>
</ext:Panel>
<ext:Panel runat="server" Title="Tab2" ID="pTab2">
<Listeners>
<BeforeRender Handler="App.direct.PopulateTab()"></BeforeRender>
</Listeners>
</ext:Panel>
</Items>
</ext:Tabpanel>
</body>
</html>
Last edited by fabricio.murta; Jul 06, 2015 at 8:54 PM.
Reason: [CLOSED]