Pasting multiple cells data from clipboard adds new rows into RadGridview

0 Answers 184 Views
GridView
Shivam
Top achievements
Rank 1
Iron
Shivam asked on 21 Oct 2022, 01:10 PM
I have a RadGridview where I select 3 cells and I paste 5 cells copied from excel,notepad,etc., now i have 2 new rows added(empty rows acting as new row). I tried setting insertnewrows=false and also allselectedcells but no use. help would be appreciated.  
Stenly
Telerik team
commented on 26 Oct 2022, 10:33 AM

I have prepared a sample project, in order to test this, however, I am sure that I am missing something of importance because, on my end, new rows are not created when pasting values. Would it be possible to give the attached project a try and let me know how I can reproduce this behavior?
Shivam
Top achievements
Rank 1
Iron
commented on 28 Oct 2022, 11:05 AM

Hi,

I don't want Add blank row on RadGridview when I am trying to paste excel to grid.  

For example -

I am pasting  4 cell of data from excel to gridview which has two row of data and one new row by default.

after pasting this 4 cell of data into a particular column (price column) two new blank rows are added which perform like a new row. 

I need to restrict this behavior, refer the attachment.

we have gone through your sample project but we have facing below issues.

1. Telerik DLL are not loaded 

2. when we use our version (2019)of Telerik DLL grid view is not loaded.

Stenly
Telerik team
commented on 01 Nov 2022, 04:19 PM

Hello Shivam,

Usually, when we send a sample project, the needed Telerik assemblies for it are not included. This is intentional, in order to keep the size of the .zip file as small as possible when transferring it, as well as that the receiving end usually has the required assemblies for testing the application. 

Regarding the missing RadGridView control, this is usually the case when the NoXaml assemblies are used without applying a theme. More information on this scenario could be found in the following article:

Missing Controls in the UI | Telerik UI for WPF

With this being said, I have attached the sample project from my initial comment to this thread, modified to include the needed packages once it is built.

No answers yet. Maybe you can help?

Tags
GridView
Asked by
Shivam
Top achievements
Rank 1
Iron
Share this question
or