Copy a row and insert as new row

1 Answer 337 Views
Grid
Ponlu
Top achievements
Rank 1
Ponlu asked on 01 Jun 2023, 07:53 AM

Hi,

I'm using the TK UI for Blazor Grid.

This is the table:

First NameLast NameHeightPositionPoints per game
StephenCurry191Point Guard28
KlayThompson201Shooting Guard21

I have created an add new item method which allows me to enter all fields manually. Is there a way in TK to copy e.g the first row and paste it to the open form?

Of course, we have around 50 columns in real world and our Users find it exhausting to manually enter all fields.

Thanks for any hint

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 05 Jun 2023, 09:49 AM

Hi Ponlu,

The desired behavior is possible to implement with Grid row selection and/or custom Copy/Paste buttons:

  • Use the SelectedItemsChanged event or the SelectedItems parameter, or a custom Copy button, or a CommandButton to get the data item values to copy.
  • Use a custom Paste button in the new row to set the "copied" values.

It is not possible to directly use standard browser commands such as Ctrl+C and Ctrl+V, unless the user is copying a single value.

Regards,
Dimo
Progress Telerik

As of R2 2023, the default icon type will be SVG instead of Font. See this blogpost for more information.
Tags
Grid
Asked by
Ponlu
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or