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

Space at the end when copy and paste

1 Answer 57 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Andy
Top achievements
Rank 1
Andy asked on 05 Jul 2011, 06:11 PM
Hi all,

I have a Email column which uses "telerik:GridTemplateColumn".
Normally, my customer often copies email from existed emails when create a new record.
But when copy & paste, it includes the space at the end which causes error because of email validation.
This one doesn't happen with telerik:GridBoundColumn".
I mean there is no space at the end when highlight if use telerik:GridBoundColumn
Are there any ways to fix it?

Thanks.

Andy.

1 Answer, 1 is accepted

Sort by
0
Accepted
Tsvetina
Telerik team
answered on 08 Jul 2011, 12:29 PM
Hi Andy,

What control do you have in the GridTemplateColumn? This is actually what should be making the difference - in a bound column the text is rendered as a literal and you might be using a label for example. Anyway, one way that you could try is to trim the text in the code-block that you use for binding the ItemTemplate.
<asp:Label ... Text='<%#Eval("Your Boundfield Name").ToString().Trim()%>'/>


Kind regards,
Tsvetina
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Tags
Grid
Asked by
Andy
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or