Nested UpdatePanel - No event fired

2 posts, 0 answers
  1. Scott
    Scott avatar
    4 posts
    Member since:
    Dec 2006

    Posted 11 Jun 2008 Link to this post

    I've built a portal site successfully (all docks are created dynamically) after following telerik portal site sample. I also cloned Horoscopes.ascx called sampleScopes which is a little bit different from  Horoscopes.ascx.

    For example,  there is a search textbox which user can do search. The dropdown list is inside of an update panel (updatepanel1) and it can be populated dynamically after search. The autopostback for the dropdownlist is turned on. 

    Ideally, if user selects item from dropdown list, it should update text of a lable in another update panel (updatepanel2). But somehow, it doesn't work. The event from dropdown list doesn't fire. But if I move the sampleScopes from dock and put it into regular page, the event fires. I guess there is something to do with dock and its lifecycle.

  2. Obi-Wan Kenobi
    Obi-Wan Kenobi  avatar
    460 posts
    Member since:
    Aug 2007

    Posted 16 Jun 2008 Link to this post

    I tried the following code and everything seems to be OK.
    <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> 
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ""> 
    <html xmlns="" style="height: 100%">  
    <head id="Head1">  
        <title>Untitled Page</title> 
    <body style="height: 100%">  
        <form id="form1" runat="server" style="height: 100%">  
                <asp:ScriptManager ID="ScriptManager1" runat="server">  
                    <telerik:RadDockLayout ID="RadDockLayout1" runat="server">  
                        <asp:UpdatePanel ID="UpdatePanel1" runat="server">  
                                <telerik:RadDockZone ID="RadDockZone1" runat="server">  
                                    <telerik:RadDock ID="RadDock1" runat="server" Width="150px" AutoPostBack="true" Resizable="true">  
                                            <asp:UpdatePanel ID="UpdatePanel2" runat="server">  
                                                    <asp:DropDownList ID="ddList1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddList1_SelectedIndexChanged">  
                                                    <asp:Button ID="Button1" Text="PopulateDropDown" runat="server" OnClick="Button1_Click" /> 
                                <telerik:RadDockZone ID="RadDockZone2" runat="server">  
                    <asp:Button ID="btnPostback" runat="server" Text="Postback" /> 

    protected void Page_Load(object sender, EventArgs e)  
            RadDock1.Title = System.DateTime.Now.ToString();  
        protected void Button1_Click(object sender, EventArgs e)  
            ListItem imem1 = new ListItem("1");  
            ListItem imem2 = new ListItem("2");  
            ListItem imem3 = new ListItem("3");  
        protected void ddList1_SelectedIndexChanged(object sender, EventArgs e)  
            Button1.Text = System.DateTime.Now.ToString();  

    If you  paste some code I'll try to help you.
Back to Top