I have a button outside of a warp, and webgrid inside the warp. Clicking the button trigger reloading data into the webgrid, and I expect this process is AJAX. But the grid did not refreshed.
The sample works for WebChart.
Any idea?
protected void Button1_OnClick(object sender,
System.EventArgs e)
{
//this.UltraChart1.DataSource = this.GetColumnData();
//this.UltraChart1.DataBind();
//this.UpdateTitle();
AlertDataAdapter ada = new AlertDataAdapter();
UltraWebGrid g = (UltraWebGrid)this.FindControl("grid");
g.DataSource = null;
g.DataSource = ada.GetAlerts("Severity", 3, 2); // new data
g.DataBind();
}
<div> <asp:Button ID="Button1" OnClick="Button1_OnClick" runat="server" Text="Button1" /> </div>
<div> <asp:Button ID="Button2" OnClick="Button2_OnClick" runat="server" Text="Button2" /> </div>
<div style="height: 360px; padding-left:40px; padding-top:40px;">
<igmisc:WebAsyncRefreshPanel ID="WebAsyncRefreshPanel1" runat="server"
Height="219px" Width="439px" TriggerControlIDs="Button1,Button2">
<igtbl:UltraWebGrid ID="grid" runat="server" Browser="Xml" Height="200px"
Width="325px">
<Bands> ......