Hello!
Please look at this example. There the grid panel is disabled or enabled with both toolbars (top and bottom). If it wouldn't make sense please provide us with your sample code.
<%@ Import Namespace="System.Collections.Generic" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
this.Store1.DataSource = new List<Company>
{
new Company("3m Co", 71.72, 0.02, 0.03),
new Company("Alcoa Inc", 29.01, 0.42, 1.47),
new Company("Altria Group Inc", 83.81, 0.28, 0.34)
};
this.Store1.DataBind();
}
public class Company
{
public Company(string name, double price, double change, double pctChange)
{
this.Name = name;
this.Price = price;
this.Change = change;
this.PctChange = pctChange;
}
public string Name { get; set; }
public double Price { get; set; }
public double Change { get; set; }
public double PctChange { get; set; }
}
protected void DisableClick(object sender, DirectEventArgs e)
{
this.GridPanel1.Disabled = true;
}
protected void EnableClick(object sender, DirectEventArgs e)
{
this.GridPanel1.Disabled = false;
}
</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>Ext.NET Example</title>
</head>
<body>
<ext:ResourceManager ID="ResourceManager1" runat="server" />
<ext:Store ID="Store1" runat="server">
<Reader>
<ext:JsonReader>
<Fields>
<ext:RecordField Name="Name" />
<ext:RecordField Name="Price" />
<ext:RecordField Name="Change" />
<ext:RecordField Name="PctChange" />
</Fields>
</ext:JsonReader>
</Reader>
</ext:Store>
<ext:GridPanel ID="GridPanel1" runat="server" StoreID="Store1" StripeRows="true"
Title="Company List" Width="600" Height="350" AutoExpandColumn="Company">
<ColumnModel ID="ColumnModel1" runat="server">
<Columns>
<ext:Column ColumnID="Company" Header="Company" Width="160" DataIndex="Name" />
<ext:Column Header="Price" Width="75" DataIndex="Price"/>
<ext:Column Header="Change" Width="75" DataIndex="Change"/>
<ext:Column Header="Change" Width="75" DataIndex="PctChange"/>
</Columns>
</ColumnModel>
<TopBar>
<ext:Toolbar runat="server">
<Items>
<ext:Button runat="server" Text="Some button" Icon="Accept">
</ext:Button>
</Items>
</ext:Toolbar>
</TopBar>
<BottomBar>
<ext:PagingToolbar runat="server">
</ext:PagingToolbar>
</BottomBar>
</ext:GridPanel>
<ext:Button runat="server" Text="Disable grid panel">
<DirectEvents>
<Click OnEvent="DisableClick" />
</DirectEvents>
</ext:Button>
<ext:Button ID="Button1" runat="server" Text="Enable grid panel">
<DirectEvents>
<Click OnEvent="EnableClick" />
</DirectEvents>
</ext:Button>
</body>
</html>