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

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

1 Answer 137 Views
Button
This is a migrated thread and some comments may be shown as answers.
Hema
Top achievements
Rank 1
Hema asked on 09 Oct 2012, 10:57 AM
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?

1 Answer, 1 is accepted

Sort by
0
Slav
Telerik team
answered on 11 Oct 2012, 12:49 PM
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,
Slav
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.
Tags
Button
Asked by
Hema
Top achievements
Rank 1
Answers by
Slav
Telerik team
Share this question
or