Data Grid I Can not copy data in cell.

Data Grid I Can not copy data in cell.
It is recommended to configure a copy of the data in the cell.

Attachment: CaptureGrid_QT_f0ded53e.zip

7 Replies

VA Venkatesh Ayothi Raman Syncfusion Team January 11, 2018 10:56 AM UTC

Hi Customer, 

Thanks for using Syncfusion products. 

By default, user-select property will be set to none in the Grid. If you would like to disable this, you must override this property in the Grid. We have achieved your requirement by disabling the EnableTouch property as false like as follows, 
@(Html.EJ().Grid<object>("Editing") 
            .Datasource((IEnumerable<object>)ViewBag.datasource) 
         
            . .  . 
               .EnableTouch(false) 
        .Columns(col => 
        { 
            . .  . 
             
            
        })) 
 
Another way to select the Grid content text: 
This can be achieved by using the CssClass property of the Grid property as shown in the following code example, 
Code example
@Style 
<style> 
        .e-grid.copyText .e-rowcell { 
            -moz-user-select: inherit; 
            -khtml-user-select: inherit; 
            -webkit-user-select: text; 
            -ms-user-select: inherit; 
            user-select: inherit; 
        } 
    </style> 
 
[Grid] 
 
@(Html.EJ().Grid<object>("Editing") 
            .Datasource((IEnumerable<object>)ViewBag.datasource) 
         
            . .  . 
              .CssClass("copyText") 
                
        .Columns(col => 
        { 
            . .  . 
             
            
        })) 

We have also created a knowledge base documentation for this and it can be referred from following link, 

Please let us know if you have any further assistance on this. 

Regards, 
Venkatesh Ayothiraman. 



MJ MJ January 14, 2018 01:24 PM UTC

THX.


VA Venkatesh Ayothi Raman Syncfusion Team January 15, 2018 03:47 AM UTC

Hi Customer, 

We are very happy to hear that your requirement is achieved. 

Regards, 
Venkatesh Ayothiraman. 



AR Arian December 10, 2018 11:29 PM UTC

Hey Venkat, this doesn't work for Mobile device.  How do I copy individual text on any mobile device?


VN Vignesh Natarajan Syncfusion Team December 11, 2018 09:51 AM UTC

Hi Arian, 

Query: “this doesn't work for Mobile device” 

From your query, we understand that you are facing issue while copying text from  We have analyzed the reported issue and we are not able to reproduce the reported issue in mobile device. We are able to copy the value and paste in another page in mobile device.  

We have ensured the issue in Android device and Apple iPhone. Kindly share the following details which will be helpful for us to validate the reported issue at our end. 

  1. Share the grid rendering code.
  2. Share your essential studio version (xx.x.x.xx).
  3. Share the browser and mobile device details like Brand make, OS version.
  4. If possible share the hosted link to validate the reported issue.
 
Regards, 
Vignesh Natarajan 



AR Arian December 10, 2019 08:07 PM UTC

Nevermind, right click doesn't work when contextmenu is enabled, that's why I couldn't copy the text in the Mobile device.  Cheers


GL Gowri Loganathan Syncfusion Team December 11, 2019 01:45 PM UTC

Hi Arian, 

Thanks for the update. 

Query#: right click doesn't work when contextmenu is enabled, that's why I couldn't copy the text in the Mobile device 

We have analysed your query and we are unable to reproduce the issue at our end. When contextmenu is enabled we can copy cell content and paste it in another device. 

Please refer the attached screenshot:- 
 
 

We have ensured the issue in Android device and Apple iPhone. Kindly share the following details which will be helpful for us to validate the reported issue at our end.  
  1. Share the Grid rendering code.
  2. Share your essential studio version (xx.x.x.xx).
  3. Share the browser and mobile device details like Brand make, OS version.
  4. If possible share the hosted link to validate the reported issue.
 
Regards, 
Gowri V L. 


Loader.
Up arrow icon