Jan 27, 2017, 8:15 AM
[CLOSED] Expand GridPanel when collapse another GridPanel
Hi guys!
I have a question:
I have two GridPanel inside a Panel with AnchorLayout, the first one with AnchorVertical 60 and the second one with Anchor Vertical 40.
I would like that when I collapse the first one, the second expand at the max vertical size possible inside the Panel.
Is it possibile??
Here my code:
Stefano
I have a question:
I have two GridPanel inside a Panel with AnchorLayout, the first one with AnchorVertical 60 and the second one with Anchor Vertical 40.
I would like that when I collapse the first one, the second expand at the max vertical size possible inside the Panel.
Is it possibile??
Here my code:
<ext:Panel ID="panelAnalisiAnomaliePerTipo" runat="server" Region="Center" Layout="AnchorLayout" Split="false"
Collapsible="false" Border="false" Hidden="false" AutoScroll="false" MarginSpec="84 0 0 0">
<Items>
<ext:GridPanel ID="GridPanelAnalisiAnomaliePerTipo" runat="server" Title="Analisi anomalie per tipo" Stateful="true" Collapsible ="true"
BodyPadding="0" AnchorHorizontal="100%" AnchorVertical="60%"
Resizable = "false">
<Store>
<ext:Store ID="StoreAnalisiAnomaliePerTipo" runat="server" PageSize="20" OnReadData="StoreAnalisiAnomaliePerTipo_RefreshData">
<Model>
<ext:Model ID="ModelAnalisiAnomaliePerTipo" runat="server" IDProperty="IDVEICOLO">
<Fields>
<ext:ModelField Name="ID_ANOMALIA" />
<ext:ModelField Name="IDVEICOLO" />
</Fields>
</ext:Model>
</Model>
</ext:Store>
</Store>
<ColumnModel ID="ColumnModelAnalisiAnomaliePerTipo" runat="server">
<Columns>
<ext:Column ID="ColumnIDVEICOLO" runat="server" Text="IDVEICOLO" DataIndex="IDVEICOLO" Width="100" Hidden = "true" >
</ext:Column>
<ext:Column ID="ColumnID_ANOMALIA" runat="server" Text="ID_ANOMALIA" DataIndex="ID_ANOMALIA" Width="100" Hidden = "true" >
</ext:Column>
</Columns>
</ColumnModel>
<Plugins>
<ext:GridFilters ID="GridFiltersAnalisiAnomaliePerTipo" runat="server">
</ext:GridFilters>
</Plugins>
<SelectionModel>
<ext:RowSelectionModel ID="RowSelectionModelGridPanelAnalisiAnomaliePerTipo" runat="server" Mode="Single" >
</ext:RowSelectionModel>
</SelectionModel>
<DirectEvents>
<ItemClick OnEvent="GridPanelAnomalieVeicolo_ItemClick" Before="Ext.net.Mask.show({ el: #{GridPanelDettaglioAnomalie} });">
<ExtraParams>
<ext:Parameter Name="ID_ANOMALIA" Value="record.data.ID_ANOMALIA" Mode="Raw" />
<ext:Parameter Name="IDVEICOLO" Value="record.data.IDVEICOLO" Mode="Raw" />
</ExtraParams>
</ItemClick>
</DirectEvents>
<BottomBar>
<ext:PagingToolbar ID="PagingToolbar2"
runat="server"
DisplayInfo="true"
DisplayMsg="Numero di record {0} - {1} of {2}">
<Items>
<ext:Button ID="btnResetState" Width="140" runat="server" Text="Riconfigura" Icon="ArrowRotateAnticlockwise" Disabled = "false">
<DirectEvents>
<Click OnEvent="cmdReconfigureGridPanelState_DirectClick" Buffer="250">
<EventMask ShowMask="true" Msg="Loading..." CustomTarget="#{GridPanelAnalisiAnomaliePerTipo}"/>
</Click>
</DirectEvents>
<Listeners>
<AfterRender Handler="SaveStateStore(#{StoreAnalisiAnomaliePerTipo})" Delay="10"></AfterRender>
</Listeners>
</ext:Button>
<ext:Button ID="ButtonToExcel" Hidden="true" runat="server" Text="Excel" Icon="PageExcel" OnClientClick="ExportToExcel(#{cmbFlotta}.getRawValue(), #{cmbDeposito}.getRawValue());" >
</ext:Button>
</Items>
</ext:PagingToolbar>
</BottomBar>
</ext:GridPanel>
<ext:GridPanel ID="GridPanelDettaglioAnomalie" runat="server" Title="Dettaglio anomalie" Hidden="false" Collapsible ="true"
AnchorHorizontal="100%" AnchorVertical="40%" Stateful="true"
BodyPadding="0"
Resizable = "false">
<Store>
<ext:Store ID="StoreDettaglioAnomalie" runat="server" PageSize="10">
<Model>
<ext:Model ID="ModelDettaglioAnomalie" runat="server" IDProperty="ID">
<Fields>
<ext:ModelField Name="IDANOMALIA" />
<ext:ModelField Name="CODICE_ANOMALIA" />
</Fields>
</ext:Model>
</Model>
</ext:Store>
</Store>
<ColumnModel ID="ColumnModel3" runat="server">
<Columns>
<ext:Column ID="ColumnDETTAGLIO_IDANOMALIA" runat="server" Text="IDANOMALIA" DataIndex="IDANOMALIA" Width="100" Hidden = "true" >
</ext:Column>
</Columns>
</ColumnModel>
<Plugins>
<ext:GridFilters ID="GridFiltersDettaglioAnomalie" runat="server">
</ext:GridFilters>
</Plugins>
<SelectionModel>
<ext:CheckboxSelectionModel ID="CheckboxSelectionModelEventiLOC" runat="server" Mode="Simple" />
</SelectionModel>
</ext:GridPanel>
</Items>
</ext:Panel>
Thank you very much!!Stefano
Last edited by fabricio.murta; Feb 01, 2017 at 4:59 PM.