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

Paste Function

2 Answers 22 Views
Input
This is a migrated thread and some comments may be shown as answers.
Omlac
Top achievements
Rank 1
Omlac asked on 12 Nov 2008, 07:51 AM
Hi All
Is there a paste function for RAdInput controls(Textbox) which is similar to the pasteHtml for the Editor. 

set_value is removing the old text and replace with new text.

Regards

2 Answers, 1 is accepted

Sort by
0
Accepted
Daniel
Telerik team
answered on 12 Nov 2008, 09:13 AM
Hello Omlac,

Test the following approach:
<script type="text/javascript" language="javascript"
    function AddText() 
    { 
        var textBox = $find('<%= RadTextBox1.ClientID %>'); 
        var newValue = "NEW TEXT"
        textBox.set_value(textBox.get_value() + newValue); 
    } 
</script> 

Let us know whether it helps.

Regards,
Daniel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Omlac
Top achievements
Rank 1
answered on 12 Nov 2008, 12:24 PM
Thank you very much
Tags
Input
Asked by
Omlac
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Omlac
Top achievements
Rank 1
Share this question
or