Ajax RadFormDecorator

3 posts, 1 answers
  1. Michael
    Michael avatar
    18 posts
    Member since:
    Jun 2009

    Posted 16 Mar 2010 Link to this post

    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. Answer
    Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 19 Mar 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Michael
    Michael avatar
    18 posts
    Member since:
    Jun 2009

    Posted 19 Mar 2010 Link to this post

    Thank you. That worked great.
Back to Top