Feb 08, 2013, 1:01 PM
[CLOSED] Store reload makes scrollbars appear in gridpanel
Hi team,
since hours I'm trying to get rid of the gridpanel h/v scrollbars that appear after reloading store data. When shown for the first time, everything is perfect. After triggering a reload the scrollbars appear for no reason. Why is this, what can I do? When I set AutoHeight/AutoWidth to true, the scrollbars don't appear, but I've got some kind of extra space on the right side of the last column, as if there was another column, I don't know why. Can you help me with this?
Thanks, Ingo
since hours I'm trying to get rid of the gridpanel h/v scrollbars that appear after reloading store data. When shown for the first time, everything is perfect. After triggering a reload the scrollbars appear for no reason. Why is this, what can I do? When I set AutoHeight/AutoWidth to true, the scrollbars don't appear, but I've got some kind of extra space on the right side of the last column, as if there was another column, I don't know why. Can you help me with this?
Thanks, Ingo
<ext:GridPanel
AutoHeight="true"
AutoWidth="true"
Cls="axvGrid"
EnableColumnMove="false"
Header="true"
ID="gridObjektGebaeudeAusstattung"
IDMode="Static"
PreventBodyReset="false"
runat="server"
Selectable="true"
StoreID="objektGebaeudeAusstattungStore"
StripeRows="true"
>
<SelectionModel>
<ext:RowSelectionModel ID="gridObjektGebaeudeAusstattungSelectionModel" runat="server" SingleSelect="true" />
</SelectionModel>
<ColumnModel ID="gridObjektGebaeudeAusstattungColumnModel" runat="server">
<Columns>
<ext:Column Header="Objekt_gridGebaeudeAusstattung_Kostengruppe" DataIndex="KostengruppeName" Width="135" Sortable="false" MenuDisabled="true" Fixed="true" />
<ext:Column Header="Objekt_gridGebaeudeAusstattung_Einfach" DataIndex="IstAusstattung1" Width="60" Align="Center" Sortable="false" MenuDisabled="true" Fixed="true">
<Renderer Fn="okIconRenderer" />
</ext:Column>
<ext:Column Header="Objekt_gridGebaeudeAusstattung_Mittel" DataIndex="IstAusstattung2" Width="60" Align="Center" Sortable="false" MenuDisabled="true" Fixed="true">
<Renderer Fn="okIconRenderer" />
</ext:Column>
<ext:Column Header="Objekt_gridGebaeudeAusstattung_Gehoben" DataIndex="IstAusstattung3" Width="60" Align="Center" Sortable="false" MenuDisabled="true" Fixed="true">
<Renderer Fn="okIconRenderer" />
</ext:Column>
<ext:Column Header="Objekt_gridGebaeudeAusstattung_StarkGehoben" DataIndex="IstAusstattung4" Width="90" Align="Center" Sortable="false" MenuDisabled="true" Fixed="true">
<Renderer Fn="okIconRenderer" />
</ext:Column>
<ext:Column Header="Objekt_gridGebaeudeAusstattung_GewichtungProzent" DataIndex="GewichtungProzent" Width="35" Align="Right" Sortable="false" MenuDisabled="true" Fixed="true">
<Renderer Fn="prozentRenderer" />
</ext:Column>
<ext:NumberColumn Header="Objekt_gridGebaeudeAusstattung_Produkt" DataIndex="Produkt" Width="52" Align="Center" Format="0.00" Sortable="false" MenuDisabled="true" Fixed="true" />
</Columns>
</ColumnModel>
</ext:GridPanel>
private void RefreshGebaeudeAusstattungBewertung(int gebaeudeId)
{
this.objektGebaeudeAusstattungErgebnisStore.DataSource = DARepository.GebaeudeAusstattungDataService.LoadGebaeudeAusstattungBewertungList(gebaeudeId);
this.objektGebaeudeAusstattungErgebnisStore.DataBind();
this.gridObjektGebaeudeAusstattungErgebnis.DoLayout();
}
Last edited by Daniil; Feb 19, 2013 at 3:32 AM.
Reason: [CLOSED]