Nov 10, 2010, 8:20 PM
Hi,
This is my code:
Problem:
The gridPanel and PagingToolBar renders twice.
The first one, the empty gridpanel and toolbar appears on the top of the form for 1-2 second.
And then, displays the full grid with the pagingToolbar on the down of the form.
Obviously, the first one should not appear.
I verified that removing the pagingtoolbar does not appear the problem.
This is my code:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="example.aspx.cs" Inherits="example" %>
<%@ Register assembly="Ext.Net" namespace="Ext.Net" tagprefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Example</title>
</head>
<body>
<form id="fEmpl" runat="server">
<ext:ResourceManager ID="ResourceManager1" runat="server" />
<ext:Store ID="store_empl" runat="server" AutoLoad="true">
<AutoLoadParams>
<ext:Parameter Name="start" Value="0" Mode="Raw" />
<ext:Parameter Name="limit" Value="5" Mode="Raw" />
</AutoLoadParams>
<Reader>
<ext:ArrayReader>
<Fields>
<ext:RecordField Name="getId" />
<ext:RecordField Name="getName" />
</Fields>
</ext:ArrayReader>
</Reader>
</ext:Store>
<ext:GridPanel ID="gridp" runat="server" StoreID="store_empl" Width="755" Height="570" Border="false" StripeRows="true"
TrackMouseOver="true" AutoExpandColumn="name">
<ColumnModel ID="ColumnModel1" runat="server">
<Columns>
<ext:Column ColumnID="code" Header="Code" DataIndex="getId" />
<ext:Column ColumnID="name" Header="Name" DataIndex="getName" />
</Columns>
</ColumnModel>
<SelectionModel>
<ext:RowSelectionModel ID="RowSelectionModel1" runat="server" SingleSelect="true" >
</ext:RowSelectionModel>
</SelectionModel>
<BottomBar>
<ext:PagingToolBar ID="PagingToolBar1" runat="server" PageSize="5" StoreID="store_empl" />
</BottomBar>
</ext:GridPanel>
</form>
</body>
</html>
protected void Page_Load(object sender, EventArgs e)
{
this.store_empl.DataSource = new object[]
{
new object[] { "3m Co", 71.72},
new object[] { "3m", 71.75},
new object[] { "5m Co", 71.70},
new object[] { "9m Co", 71.70},
new object[] { "13m Co", 71.74},
new object[] { "233m Co", 71.74},
new object[] { "343m Co", 71.74},
new object[] { "1m Co", 71.72},
new object[] { "56 Co", 71.79},
new object[] { "6 Co", 71.71},
};
this.store_empl.DataBind();
}
As i told you, this code doesn´t work fine on Mozilla Firefox 3.6.12 (but works fine on Internet Explorer 6).Problem:
The gridPanel and PagingToolBar renders twice.
The first one, the empty gridpanel and toolbar appears on the top of the form for 1-2 second.
And then, displays the full grid with the pagingToolbar on the down of the form.
Obviously, the first one should not appear.
I verified that removing the pagingtoolbar does not appear the problem.