TextBoxControl with Button

3 posts, 1 answers
  1. Dominik
    Dominik avatar
    14 posts
    Member since:
    Jan 2017

    Posted 10 Mar Link to this post

    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. Answer
    Dimitar
    Admin
    Dimitar avatar
    1871 posts

    Posted 10 Mar Link to this post

    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.
  3. Dominik
    Dominik avatar
    14 posts
    Member since:
    Jan 2017

    Posted 10 Mar Link to this post

    Thanks a lot Dimitar, Master of Telerik Stuff!
Back to Top