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

Paste?

1 Answer 485 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ed
Top achievements
Rank 1
Iron
Veteran
Iron
Ed asked on 04 Mar 2020, 10:52 AM

Is it possible to paste multiple rows into the grid, whether it's from excel or notepad, I don't care, I'd just like to have the capability.

Thanks .... Ed

 

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 04 Mar 2020, 02:01 PM

Hello Ed,

If you can capture the paste event on your page (e.g., through a <div> around the grid), you can get the data in C# and populate the grid Data collection with it. If you do create such an example, I'd encourage you to open a pull request with it in this repo: https://github.com/telerik/blazor-ui - we award such contributions with Telerik points and we will credit you in the readme in an appropriate manner that you prefer (you can add the credits yourself in a readme too).

The following thread offers some explanations on why the grid can't do this for you (short version: serialization of the models is not in the grid's domain): https://feedback.telerik.com/blazor/1435743-copy-selected-row-to-the-clipboard.

 

Regards,
Marin Bratanov
Progress Telerik

 UI for Blazor
Tags
Grid
Asked by
Ed
Top achievements
Rank 1
Iron
Veteran
Iron
Answers by
Marin Bratanov
Telerik team
Share this question
or