Is it possible to ajax the radformdecorator?
I use the code below for my aspx page.
and in the code behind I use the code below.
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
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