Jul 05, 2012, 3:58 PM
[CLOSED] When runing from the Server '08 R2 and the user switch TAB, my BottomBar shifts to the right on each TAB click.
Running locally works fine, but when I access it from the Server '08 R2 through a client IE8 Browser, the BottomBar moves slightly to the right on each Tab click !!
<%@ Page Language="C#" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
if (!X.IsAjaxRequest)
{
this.Store1.DataSource = this.Data;
this.Store1.DataBind();
var lines = new List<string>() { "Line 1", "Line 2", "Line 3", "Line 4" };
int i = 1;
foreach (var line in lines)
{
/* NEW Tab */
var tabStripItem = new Tab
{
TabID = @"_" + i,
Text = line,
ToolTip = line
};
TabStrip1.Listeners.TabChange.Handler = "App.direct.LoadActiveTab(tab.id, tab.text);";
TabStrip1.Items.Add(tabStripItem);
i++;
}
}
}
[DirectMethod]
public void LoadActiveTab(string id, string text)
{
var title = "ID #: " + id.Remove(0, 1);
X.Msg.Notify(title, text).Show();
}
private object[] Data
{
get
{
return new object[]
{
new object[] { "3m Co", 71.72, 0.02, 0.03, "9/1 12:00am" },
new object[] { "Alcoa Inc", 29.01, 0.42, 1.47, "9/1 12:00am" },
new object[] { "Altria Group Inc", 83.81, 0.28, 0.34, "9/1 12:00am" },
new object[] { "Wal-Mart Stores, Inc.", 45.45, 0.73, 1.63, "9/1 12:00am" }
};
}
}
</script>
<!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 id="Head1" runat="server">
<title>Simple Array Grid - Ext.NET Examples</title>
</head>
<body>
<ext:ResourceManager ID="ResourceManager1" runat="server" />
<ext:TabStrip ID="TabStrip1" runat="server" />
<ext:GridPanel ID="GridPanel1" runat="server" Title="Array Grid" Width="600" Height="175">
<Store>
<ext:Store ID="Store1" runat="server">
<Model>
<ext:Model ID="Model1" runat="server">
<Fields>
<ext:ModelField Name="company" />
<ext:ModelField Name="price" Type="Float" />
<ext:ModelField Name="change" Type="Float" />
<ext:ModelField Name="pctChange" Type="Float" />
<ext:ModelField Name="lastChange" Type="Date" DateFormat="M/d hh:mmtt" />
</Fields>
</ext:Model>
</Model>
</ext:Store>
</Store>
<ColumnModel>
<Columns>
<ext:Column ID="Column1" runat="server" Text="Company" DataIndex="company" Flex="1" />
<ext:Column ID="Column2" runat="server" Text="Price" DataIndex="price">
</ext:Column>
<ext:Column ID="Column3" runat="server" Text="Change" DataIndex="change">
</ext:Column>
<ext:Column ID="Column4" runat="server" Text="Change" DataIndex="pctChange">
</ext:Column>
<ext:DateColumn ID="DateColumn1" runat="server" Text="Last Updated" DataIndex="lastChange" />
</Columns>
</ColumnModel>
<SelectionModel>
<ext:RowSelectionModel ID="RowSelectionModel1" runat="server" />
</SelectionModel>
<BottomBar>
<ext:Toolbar ID="Toolbar1" runat="server" Layout="FitLayout">
<Items>
<ext:Container ID="Container1" runat="server">
<Content>
<table align="center">
<tr>
<td>
<table border="0">
<tr>
<td>
<b>Testing HTML</b>
</td>
</tr>
</table>
</td>
</tr>
</table>
</Content>
</ext:Container>
</Items>
</ext:Toolbar>
</BottomBar>
</ext:GridPanel>
</body>
</html>
Last edited by Daniil; Jul 10, 2012 at 11:23 AM.
Reason: [CLOSED]