Hi,
I have a scenario where I'm dynamically creating checkbox at client side and need to decorate it using RadFormDecorator.
For Ex:
Thanks in advance...
I have a scenario where I'm dynamically creating checkbox at client side and need to decorate it using RadFormDecorator.
For Ex:
<form id="form1" runat="server"> <asp:ScriptManager ID="ScriptManager1" runat="server"> <Scripts> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" /> <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" /> </Scripts> </asp:ScriptManager> <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" Skin="Default" DecoratedControls="All" /> <div id="d"></div> </form> <script type="text/javascript"> window.onload = function () { var cb = document.createElement('input'); cb.type = 'checkbox'; document.getElementById('d').appendChild(cb); var decorator = $find("<%= RadFormDecorator1.ClientID %>"); if (decorator) { decorator.decorate(cb, true); } } </script>