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

Remove a list of characters

3 Answers 91 Views
Input
This is a migrated thread and some comments may be shown as answers.
Antony
Top achievements
Rank 1
Antony asked on 03 Jun 2013, 12:14 PM
Hi,

I have a radtextbox and from server code I want to trim a list of characters from the end. How to accomplish?

Thanks,
Antony.

3 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 03 Jun 2013, 12:38 PM
Hi,

Please have a look at the following C# code.

C#:
string text = RadTextBox1.Text.TrimEnd(new char[] { ',', ';', '/' });

Thanks,
Shinu.
0
Antony
Top achievements
Rank 1
answered on 04 Jun 2013, 08:47 AM
Thanks for the support :)

I have another query. In HTML5, for input we can give placeholder which acts as water-mark. Similarly for the RadTextBox, how can we give a placeholder?
0
Shinu
Top achievements
Rank 2
answered on 04 Jun 2013, 10:02 AM
Hi Antony,

Try setting the EmptyMessage property of the RadTextBox which can act like the HTML5 input placeholder.

Thanks,
Shinu.
Tags
Input
Asked by
Antony
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Antony
Top achievements
Rank 1
Share this question
or