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

TextBoxControl with Button

2 Answers 61 Views
TextBoxControl
This is a migrated thread and some comments may be shown as answers.
Dominik
Top achievements
Rank 1
Dominik asked on 10 Mar 2017, 07:58 AM

Hi, 

we are using the TextBoxControl instead of the TextBox because of the performance. Now I need to add a button/Icon in my TextBoxControl. I have found a solution for the Textbox but could not find any solution for the TextBoxControl. 

 

How can i add a simple Button in my TextBoxControl ??

 

Sincerely,

Dominik

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimitar
Telerik team
answered on 10 Mar 2017, 09:05 AM
Hi Dominik,

The following snippet shows how you can achieve this:
var button = new RadButtonElement();
button.Text = "...";
 
this.radTextBoxControl1.TextBoxElement.Children[4].Children.Add(button);

Please let me know if there is something else I can help you with. 
 
Regards,
Dimitar
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Dominik
Top achievements
Rank 1
answered on 10 Mar 2017, 09:10 AM
Thanks a lot Dimitar, Master of Telerik Stuff!
Tags
TextBoxControl
Asked by
Dominik
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Dominik
Top achievements
Rank 1
Share this question
or