how to bind formdecorator with buttons

3 posts, 0 answers
  1. Suvresh
    Suvresh avatar
    1 posts
    Member since:
    Feb 2009

    Posted 21 Feb 2009 Link to this post

    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.

  2. Steve Y
    Steve Y avatar
    115 posts
    Member since:
    Sep 2008

    Posted 22 Feb 2009 Link to this post

    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
  3. Georgi Tunev
    Georgi Tunev avatar
    7207 posts

    Posted 23 Feb 2009 Link to this post

    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:

    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.
Back to Top