ControlsToSkip and Textbox

3 posts, 0 answers
  1. Aarsh
    Aarsh avatar
    192 posts
    Member since:
    Jun 2012

    Posted 09 Oct 2012 Link to this post

    Hi friends,

    <telerik:RadFormDecorator ID="id runat="server" ControlsToSkip="Textbox"></telerik:RadFormDecorator>


    Seems not to be working for textboxes, instead, the below serves the purpose.
    <telerik:RadFormDecorator ID="id runat="server" ControlsToSkip="Textarea"></telerik:RadFormDecorator>


    Am I missing something ?

    Thanks,
    -Aarsh
  2. Bozhidar
    Admin
    Bozhidar avatar
    677 posts

    Posted 10 Oct 2012 Link to this post

    Hello,

    I have tested your scenario, and the only additional property I have added is DecoratedControls:

    <body>
        <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <telerik:RadFormDecorator ID="rfd1" runat="server" DecoratedControls="All" ControlsToSkip="Textbox" />
        <asp:TextBox runat="server"></asp:TextBox>
        </form>
    </body>
    </html>

    It works as expected and the asp text box is not decorated.

    All the best,
    Bozhidar
    the Telerik team
    Explore the entire set of ASP.NET AJAX controls we offer here and browse the myriad online demos to learn more about the components and the features they incorporate.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Aarsh
    Aarsh avatar
    192 posts
    Member since:
    Jun 2012

    Posted 10 Oct 2012 Link to this post

    Thanks, I ended up using:

    <telerik:RadFormDecorator ID="SomeID" runat="server" DecoratedControls="All" ControlsToSkip="Textbox, Scrollbars"></telerik:RadFormDecorator>


    Thanks,
    -Aarsh

    Please mark as ans if it deserves to be the answer of this question.
Back to Top