PDA

View Full Version : [CLOSED] GridPanel BufferedRender removing CommandColumn



csfesta
Nov 09, 2013, 12:59 AM
Hello

I have a GridPanel that has a CommandColumn with a GridCommand that has an icon. However, when I scroll out of the buffered zone, the GridCommand is empty and does not contain the button or icon. When I scroll back up, it is no longer renders at all and the column is blank.

How do you prevent this from happening? I want to be able to scroll down on the grid going through multiple zones and have the button draw on the screen.


<ext:GridPanel runat="server" ID="MainTable" AutoScroll="true" Flex="1" Title="Capacity Group Instances" ButtonAlign="Right">
<Plugins>
<ext:BufferedRenderer ID="BufferedRenderer1" runat="server" />
</Plugins>
<ColumnModel ID="ColumnModel1" runat="server">
<Columns>
<ext:Column ID="Column2" runat="server" Text="DB Type" DataIndex="DB_TYPE_DESC" Width="125" />
<ext:Column ID="Column3" runat="server" Text="Applications" DataIndex="APPLICATIONS" Width="175" Flex="1" >
<Renderer fn="appRenderer" />
</ext:Column>

<ext:Column ID="Column4" runat="server" Text="Instance Name" DataIndex="INSTANCE_NAME" Width="125" />
<ext:Column ID="Column5" runat="server" Text="Allocated Storage(GB)" DataIndex="ALLOCATED_STORAGE" Width="125" />
<ext:Column ID="Column9" runat="server" Text="Used Storage(GB)" DataIndex="CURRENT_USAGE" Width="125" />
<ext:Column ID="Column10" runat="server" Text="% Used" DataIndex="PERCENT_USAGE" Width="125" />
<ext:Column ID="Column11" runat="server" Text="Est. 70 Date" DataIndex="EST_70_DATE" Width="150" >


</ext:Column>
<ext:Column ID="Column6" runat="server" Text="Est. Max Date" DataIndex="EST_MAX_DATE" Width="150" Flex="1" >
<Renderer Fn="RenderColor" />

</ext:Column>
<ext:CommandColumn ID="CommandColumn1" runat="server" Width="110">
<Commands>

<ext:GridCommand Icon="ChartCurve" CommandName="ViewGraph" Text="View Graph" />

</Commands>

<Listeners>


<Command Handler="#{window1}.show(); App.direct.ShowChart(command,record.get('DB_INSTAN CE_ID'),record.get('INSTANCE_NAME'),record.get('AL LOCATED_STORAGE'),record.get('CURRENT_USAGE'),reco rd.get('EST_70_DATE'),record.get('EST_MAX_DATE'));" />
</Listeners>
</ext:CommandColumn>

</Columns>
</ColumnModel>
<View>
<ext:GridView ID="GridView1" runat="server">

<Listeners>
<Refresh Handler="#{MainTable}.body.unmask();" Delay="1" />
</Listeners>
</ext:GridView>
</View>

<Listeners>
<AfterRender Handler="App.MainTable.refresh" />
</Listeners>
</ext:GridPanel>

Baidaly
Nov 09, 2013, 3:46 AM
Hello!

Couldn't reproduce. What version of Ext.NET do you use?

Daniil
Nov 12, 2013, 10:21 AM
Hi everybody,

Yes, I recall such a bug. It has been fixed in v2.3.