ajaxmanger updating items in panelbar

2 posts, 0 answers
  1. lkj lkj
    lkj lkj avatar
    12 posts
    Member since:
    Jan 2010

    Posted 12 Mar 2010 Link to this post

    Hi.

    I have a panelbar in which I have put a combobox and a textbox. I cannot get my ajaxsettings/updatedcontrols to work when they are in the panelbar it works fine when im outside of the panelbar. Im sure its a simple configuratoin that i am missing

  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 12 Mar 2010 Link to this post

    Hello,

    It is working as expected when I tried the same scenario in my end. Here is the code that I tried.

    ASPX:

     
        <asp:ScriptManager ID="ScriptManager1" runat="server">  
        </asp:ScriptManager>  
     
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
            <AjaxSettings>  
                <telerik:AjaxSetting AjaxControlID="RadComboBox1">  
                    <UpdatedControls>  
                        <telerik:AjaxUpdatedControl ControlID="RadPanelBar2" />  
                    </UpdatedControls>  
                </telerik:AjaxSetting>  
            </AjaxSettings>  
        </telerik:RadAjaxManager>  
        <telerik:RadPanelBar ID="RadPanelBar2" runat="server">  
            <Items>  
                <telerik:RadPanelItem Text="Item1">  
                    <ItemTemplate>  
                        <telerik:RadComboBox ID="RadComboBox1" runat="server" OnSelectedIndexChanged="RadComboBox1_SelectedIndexChanged"  
                            AutoPostBack="True">  
                            <Items>  
                                <telerik:RadComboBoxItem Text="1" />  
                                <telerik:RadComboBoxItem Text="2" />  
                            </Items>  
                        </telerik:RadComboBox>  
                        <br />  
                        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>  
                    </ItemTemplate>  
                </telerik:RadPanelItem>  
            </Items>  
        </telerik:RadPanelBar> 

    C#:

     
        protected void RadComboBox1_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e)  
        {  
            RadComboBox combo = (RadComboBox)o;  
            (combo.NamingContainer.FindControl("TextBox1"as TextBox).Text = "Selection Changed";  
        } 

    Could you paste the code that you are trying if the scenario is diferent than this?

    Regards,

    Shinu.

Back to Top