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

how to bind formdecorator with buttons

2 Answers 69 Views
FormDecorator
This is a migrated thread and some comments may be shown as answers.
Suvresh
Top achievements
Rank 1
Suvresh asked on 21 Feb 2009, 12:54 PM
hi!,
I am new to telerik rad controls. can any one please guide me to how to decorate the asp:buttons with this formdecorator control? i have a <div> with id="div1" element and inside that <div> i have my asp:button control. I have taken a radFormDecorator to my form. now how decorate the button with this control? Please help me.
Thanks in advance.

regards,
Suvresh

2 Answers, 1 is accepted

Sort by
0
Steve Y
Top achievements
Rank 2
answered on 22 Feb 2009, 01:47 PM
You can use the DecoratedControls option to enable the decorator to work on a specific type of control or you can use All to decorate all controls on a page. You can use it in conjunction with DecoratedZoneID to limit decoration to the controls you specify within a specific html element - useful if you want e.g. all controls within a div but nothing else on the page.

Here's a simple example showing you the answer to your specific question.

<Telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" DecoratedControls="Buttons" skin="Sunset" /> 

For more information go heck out the demos at this link. FormDecorator Demo

Regards, Steve
0
Georgi Tunev
Telerik team
answered on 23 Feb 2009, 02:10 PM
Hi Suvresh,

You just need to put the RadFormDecorator on the page and it should decorate the default set of controls - buttons, checkboxes, radiobuttons. You can see our new default demo of RadFormDecorator for more information:
http://demos.telerik.com/aspnet-ajax-beta/formdecorator/examples/default/defaultcs.aspx


Best wishes,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
FormDecorator
Asked by
Suvresh
Top achievements
Rank 1
Answers by
Steve Y
Top achievements
Rank 2
Georgi Tunev
Telerik team
Share this question
or