We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Cell edit by single click in batch mode

Thread ID:

Created:

Updated:

Platform:

Replies:

144541 May 10,2019 01:45 PM UTC May 15,2019 07:01 AM UTC Angular - EJ 2 3
loading
Tags: Grid
Neo
Asked On May 10, 2019 01:45 PM UTC

Hi All,

I want to enable the cell editable by single click on the cell. Currently by default has the double click option. Please advice me on this.

Thank you.

Hariharan J V [Syncfusion]
Replied On May 13, 2019 10:27 AM UTC

Hi Neo, 
  
Thanks for contacting Syncfusion support. 
  
We have validated your query and created a sample based on your requirement. In the below sample, we have bind click event for grid and edit the cell by using editCell method. Please refer the below code example and sample for more information. 
  
  click(args){ 
        if (args.target.classList.contains("e-rowcell")) { 
            var index = parseInt(args.target.getAttribute("Index")); 
            var colindex = parseInt(args.target.getAttribute("aria-colindex")); 
            var field = this.gridObj.getColumns()[colindex].field; 
            this.gridObj.editModule.editCell(index, field); 
        } 
    } 
  
  
  
Regards, 
Hariharan 


Neo
Replied On May 14, 2019 04:24 AM UTC

Hi Neo, 
  
Thanks for contacting Syncfusion support. 
  
We have validated your query and created a sample based on your requirement. In the below sample, we have bind click event for grid and edit the cell by using editCell method. Please refer the below code example and sample for more information. 
  
  click(args){ 
        if (args.target.classList.contains("e-rowcell")) { 
            var index = parseInt(args.target.getAttribute("Index")); 
            var colindex = parseInt(args.target.getAttribute("aria-colindex")); 
            var field = this.gridObj.getColumns()[colindex].field; 
            this.gridObj.editModule.editCell(index, field); 
        } 
    } 
  
  
  
Regards, 
Hariharan 


Hi Hariharan,

It's working perfectly. Thank you very much.

Hariharan J V [Syncfusion]
Replied On May 15, 2019 07:01 AM UTC

Hi Neo,

Thanks for your update.

We are happy to hear that your requirement has been resolved.

Regards,
Hariharan


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon