Paste non ascii characters into RadGridView

6 posts, 0 answers
  1. Miklos
    Miklos avatar
    5 posts
    Member since:
    Sep 2015

    Posted 17 Aug 2017 Link to this post

    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?
  2. Hristo
    Admin
    Hristo avatar
    1510 posts

    Posted 17 Aug 2017 Link to this post

    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.
  3. Miklos
    Miklos avatar
    5 posts
    Member since:
    Sep 2015

    Posted 17 Aug 2017 in reply to Hristo Link to this post

    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.

  4. Hristo
    Admin
    Hristo avatar
    1510 posts

    Posted 18 Aug 2017 Link to this post

    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.
  5. Miklos
    Miklos avatar
    5 posts
    Member since:
    Sep 2015

    Posted 18 Aug 2017 in reply to Hristo Link to this post

    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.
  6. Hristo
    Admin
    Hristo avatar
    1510 posts

    Posted 18 Aug 2017 Link to this post

    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.
Back to Top