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

Ajax RadFormDecorator

2 Answers 107 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 16 Mar 2010, 01:36 PM
Is it possible to ajax the radformdecorator?

I use the code below for my aspx page.

<telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
    </telerik:RadScriptManager> 
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">  
    </telerik:RadAjaxManager> 
    <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" /> 
    skins:<br /> 
    <telerik:RadComboBox ID="RadComboBox1" runat="server" AutoPostBack="true">  
        <Items> 
            <telerik:RadComboBoxItem Selected="true" Text="Vista" Value="Vista" /> 
            <telerik:RadComboBoxItem Text="Black" Value="Black" /> 
            <telerik:RadComboBoxItem Text="Telerik" Value="Telerik" /> 
        </Items> 
    </telerik:RadComboBox> 
    <br /> 
    <asp:Panel ID="Panel1" runat="server">  
        <asp:Button ID="Button1" runat="server" Text="Button" /><br /> 
        <asp:Button ID="Button2" runat="server" Text="Button" /><br /> 
        <asp:CheckBox ID="CheckBox1" runat="server" /><br /> 
        <asp:RadioButton ID="RadioButton1" runat="server" /><br /> 
        <asp:LinkButton ID="LinkButton1" runat="server">LinkButton</asp:LinkButton><br /> 
    </asp:Panel> 

and in the code behind I use the code below.

Protected Sub RadComboBox1_SelectedIndexChanged(ByVal o As Object, ByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) Handles RadComboBox1.SelectedIndexChanged  
        RadFormDecorator1.Skin = e.Value  
        RadComboBox1.Skin = e.Value  
    End Sub  
 
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load  
        RadAjaxManager1.AjaxSettings.AddAjaxSetting(RadComboBox1, RadFormDecorator1)  
    End Sub 

When the user selects a skin from the combobox none of the controls update with its new skin.

I am able to get it to work without using ajax, but then the whole page refreshes. Is it possible to update the controls with the new skin using ajax?

Mike

2 Answers, 1 is accepted

Sort by
0
Accepted
Iana Tsolova
Telerik team
answered on 19 Mar 2010, 11:04 AM
Hello Michael,

Please find attached a sample illustrating how to change the RadFormDecorator skin upon ajax request.
I hope it works for you.

Regards,
Iana
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Michael
Top achievements
Rank 1
answered on 19 Mar 2010, 11:41 AM
Thank you. That worked great.
Tags
Ajax
Asked by
Michael
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Michael
Top achievements
Rank 1
Share this question
or