Updating GridPanel inside UpdatePanel

  1. #1

    Updating GridPanel inside UpdatePanel

    Have an problems with updating grid inside UpdatePanel, I know its possible to do with JS but my goal is to initiate grid updating from server side on async postback initiated from another UpdatePanel control.

    <%@ Register Assembly="Ext.Net, Version=1.0.4093.32349, Culture=neutral, PublicKeyToken=2e12ce3d0176cd87"
    	Namespace="Ext.Net" TagPrefix="ext" %>
    
    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
    	<ContentTemplate>
    		<asp:Literal ID="ltrTime" runat="server"></asp:Literal>
    		<ext:GridPanel ID="GridPanel1" runat="server"> .................... </ext:GridPanel>
    		</ContentTemplate>
    </asp:UpdatePanel>
    
    <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
    	<ContentTemplate>
    		<asp:Button ID="btnReload" runat="server" Text="Reload" OnClick="btnReload_OnClick" />
    	</ContentTemplate>
    </asp:UpdatePanel>
    protected void Page_Load(object sender, EventArgs e)
    {
    	ltrTime.Text = DateTime.Now.ToLongTimeString();
    }
    
    protected void btnReload_OnClick(object sender, EventArgs e)
    {
    	UpdatePanel1.Update();
    }
    As result Grid is disappearing after async postback. So how to do this correct ?
  2. #2

    Hi

    Try putting the gridpanel outside the updatepanel.

Similar Threads

  1. Replies: 2
    Last Post: Mar 28, 2012, 9:13 AM
  2. Replies: 0
    Last Post: Mar 19, 2012, 3:56 PM
  3. [CLOSED] [1.0] Menu inside updatepanel
    By tansu in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Dec 12, 2009, 5:57 PM
  4. [CLOSED] Portal / Panel inside an Updatepanel
    By tansu in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: May 11, 2009, 2:12 AM
  5. TabPanel inside UpdatePanel - fails
    By Timothy in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Aug 05, 2008, 9:02 PM

Tags for this Thread

Posting Permissions