Completed
Last Updated: 12 Oct 2022 12:36 by ADMIN
Release R3 2022 SP2
Martin
Created on: 05 Oct 2022 14:29
Category: UI for WinForms
Type: Bug Report
0
RadGridView: Copy/Paste from RadGridView to RadGridView fails

Repro-steps

  1. Create a Form
  2. Add a RadGridView control
  3. Add two Text columns
  4. Run the form
  5. Add a new row to the RadGridView with values "a" and "b"
  6. Add a another row to the RadGridView with values "c" and "d"
  7. Select the first row and copy the row values
  8. Select the first cell of the second row and paste the values

Expected behavior

  • The values "a" and "b" are in the second row

Observed behavior

  • The values "ab" and "d" are in the second row

 

7 comments
ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 12 Oct 2022 12:36

Hello, Martin,

Yes, there are two different bug reports regarding the copy/paste functionality from Excel to RadGridView and from one grid to another grid. They are both addressed because the issue was located at the same place and a fix will be introduced in the upcoming R3 2022 SP2 which is scheduled for the first half of November.

Your feedback regarding the Released status is greatly appreciated. However, I believe that the current approach is commonly used and changing the status to Completed always offers additional information about the expected release in which the fix will be available. Then, the release history will indicate once the version is live:

https://www.telerik.com/support/whats-new/winforms/release-history 

We will consider your suggestion in the future improvement of the feedback portal. Thank you.

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Martin
Posted on: 12 Oct 2022 08:15

Hi Dess, I see this item is fixed, together with https://feedback.telerik.com/winforms/1582340

I am glad to see it has been solved so quickly. Kudos for you and your team.

But... (there is always a "but"), since this item was changed from "unplanned" to "completed" I get the feeling this item is handled as a duplicate of the other one. If this is the case, then I wanna point out that these two bugs are not duplicates. This bug is located in the Copy-mechanism, the other bug is located in the Paste-mechanism.

Maybe I am overstepping right now, but better safe than sorry, right?

Another question: When a bug/feature is changed to "Completed" I somehow expect it to be released. That is obviously not the case. Would it be nice that bugs/features have an extra status "Released"?

 
ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 11 Oct 2022 13:15

Hello, Martin,

The order of parsing the clipboard's content to different formats has been changed which is the reason behind the changed behavior. We are currently working on a solution which is expected to be released in the next official service pack. Meanwhile, feel free to cancel the Pasting event for the undesired Format.

Once again, please excuse us for the inconvenience caused.

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Martin
Posted on: 08 Oct 2022 11:30
Hi Dess, thanks for your reaction. I am sorry, your solution almost correct. This is because the clipboard content of CSV is used and that CSV is formatted with tabs, not comma's. So the CSV content should be cancelled.
ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 07 Oct 2022 08:45

Hello, Martin,

I confirm that this is an issue with RadGridView and its copy/paste functionality. I have approved this bug report.

I have also updated your Telerik points.

Currently, the possible solution that I can suggest is to prevent copying data which is not in text format:

        private void radGridView1_Copying(object sender, GridViewClipboardEventArgs e)
        {
            if (e.Format!="Text")
            {
                e.Cancel = true;
            }
        }

Please excuse us for the inconvenience caused. We will do our best to introduce a fix in the upcoming service pack.

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Martin
Posted on: 05 Oct 2022 15:15
This worked in version 2022.2.622 of RadGridView.
Martin
Posted on: 05 Oct 2022 15:02

Extra info: During the copy-operation, the wrong value is pasted to the clipboard. In MasterGridViewTemplate, method CopyContent:

stringBuilder = ProcessContent(DataFormats.CommaSeparatedValue, cut: false, cut);

// stringBuilder is NOT converted to data.

dataObject.SetData(DataFormats.CommaSeparatedValue, autoConvert: false, data);

// The data of the previous Copy-operation to Text-copyboard-data is used for the CSV-clipboard-data.