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

Paste non ascii characters into RadGridView

5 Answers 185 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Miklos
Top achievements
Rank 1
Miklos asked on 17 Aug 2017, 07:23 AM
If i paste hungarian characters into a cell of a radGridView, it changes some of them to codes.

Example: Árvíztűrő tükörfúrógép --> Árvíztűrő tükörfúrógép

The example above contains all the non standard letters of the hungarian language. I don't understand that it handles ű and ő correctly but none of the others (á,í,ü,ö,ú,ó,é)
We use Visual Studio 2015 Version 14.0.25123.00 Update 2 and Telerik WinForms 2017.2.629.0
Could you please help me?

5 Answers, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 17 Aug 2017, 08:29 AM
Hello Miklos,

Thank you for writing.

We are not aware of a similar issue and also I could not reproduce it locally. I am sending you attached a short video showing the result on my end.

Please also check how is the attached project running on your end. In case you keep experiencing the issue please let me know how I can reproduce it. Additionally, please also specify what Windows version you are using and with what regional settings.

I hope this helps. Please let me know if you need further assistance.

Regards,
Hristo
Progress Telerik
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
Miklos
Top achievements
Rank 1
answered on 17 Aug 2017, 08:59 AM

Dear Hristo,

I tried to use your solution and it produces the same problem. I attached a photo. I typed in the words and copied it to the next row.

We use Windows 10 professional version 1703 build 15063.540. The system settings for location is Hungary and the language is hungarian.
Wether I set the form's langugage property to (default) or Hungarian or Hungarian (Hungary) it produces the same error.

0
Hristo
Telerik team
answered on 18 Aug 2017, 07:07 AM
Hi Miklos,

Thank you for writing back.

I also tested on Windows 10 and the text was pasted properly. It appears that the issue might be caused by the string itself stored in the clipboard. We have no special logic handling the non-ASCII characters.

Can you please try and paste the text into notepad first and then copy and paste it to the grid. You can also try typing the text in the cells and see if the issue would persist.

I hope this helps. Should you have further questions please do not hesitate to write back.

Regards,
Hristo
Progress Telerik
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
Miklos
Top achievements
Rank 1
answered on 18 Aug 2017, 07:33 AM
Hi Hristo,
You are right. If I copy and paste it into notepad, then copy and paste from notepad to the grid it works good. Typing into the cell directly also works fine.
Looks like its only problematic, when I copy from the grid and paste it back (to any cell of that grid).
I tried to copy from a cell of a different (read only) grid and paste it here, the problem also occures.
Looks like my problem is to copy from the grid, and it handles that data wrongly after pasting it back. But copying from the grid and pasting it to the notepad works fine. It can't handle it's own string format.

What should I do about this clipboard error?

Thank you for your help.
0
Hristo
Telerik team
answered on 18 Aug 2017, 10:51 AM
Hello Miklos,

Thank you for writing back.

You can handle the CopyingCellClipboardContent and PastingCellClipboardContent events and perform an additional validation of the data. If necessary you can also change the copied/pasted value: http://docs.telerik.com/devtools/winforms/gridview/copy-paste-cut.

I hope this will help.

Regards,
Hristo
Progress Telerik
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.
Tags
GridView
Asked by
Miklos
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Miklos
Top achievements
Rank 1
Share this question
or