How to dynamically create(a fixed no:) & remove textbox controls

2 posts, 0 answers
  1. Hema
    Hema avatar
    1 posts
    Member since:
    Oct 2012

    Posted 09 Oct 2012 Link to this post

    I have a textbox and a add button.on click of add button another textbox should be created.The add button should allow only 5 textboxex to be added.And also remove button should also be there for all the dynamically created textboxes.
    Any available button control is there in telerik to achieve this?
  2. Slav
    Slav avatar
    1359 posts

    Posted 11 Oct 2012 Link to this post

    Hello Hema,

    You can use the RadButton control to achieve the desired functionality. In the server-side click event handler of the button control, you can add or remove controls from the page via the Add and Remove methods of the form's Controls collection as shown in this article.

    Kind regards,
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top