This is a migrated thread and some comments may be shown as answers.

ajaxmanger updating items in panelbar

1 Answer 44 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
lkj lkj
Top achievements
Rank 1
lkj lkj asked on 12 Mar 2010, 12:01 PM
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

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 12 Mar 2010, 12:54 PM

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.

Tags
PanelBar
Asked by
lkj lkj
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or