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

Editing in batch mode

Thread ID:

Created:

Updated:

Platform:

Replies:

144790 May 22,2019 08:22 PM UTC May 23,2019 09:04 AM UTC Vue 1
loading
Tags: Data Grid
Eric Albino
Asked On May 22, 2019 08:22 PM UTC

I am having a problem when clicking on the edit button in batch mode. I understand that double clicking edits the row, but would like the edit button to work as well. 


Pavithra Subramaniyam [Syncfusion]
Replied On May 23, 2019 09:04 AM UTC

Hi Eric,  
 
Greetings from Syncfusion. 
 
You can start cell editing with toolbar Edit button by using the editCell method of Grid. In the below sample, we have edited the cell using editCell method in toolbar click event.  
 
Please check the below code example, documentation link and sample link for more information. 
 
<template> 
  <div id="app"> 
     <ejs-grid :dataSource='data' ref="grid" :toolbarClick="toolbarClick" :editSettings='editSettings' :toolbar='toolbar' height='273px'> 
            <e-columns> 
                 .  .  . 
            </e-columns> 
        </ejs-grid> 
  </div> 
</template> 
 
<script> 
import Vue from "vue"; 
import { GridPlugin,Page, Toolbar, Edit } from "@syncfusion/ej2-vue-grids"; 
import { data } from './datasource.js'; 
Vue.use(GridPlugin); 
export default { 
  name: "App", 
    .  .  . 
   methods: { 
    toolbarClick: function(args) {  
      if(args['item'].text === 'Edit') { 
             // here we have stop the mouse event propagation to avoid cell save 
        args.originalEvent.stopPropagation();                  this.$refs.grid.ej2Instances.editModule.editCell(Math.min(this.$refs.grid.ej2Instances.getSelectedRowIndexes()), "CustomerID"); 
     } 
    }      
   } 
}; 
</script> 
 
 
 
Sample               : https://codesandbox.io/s/vue-template-i4kmw 
 
Please get back to us if you need any further assistance on this.  
 
Regards, 
Pavithra S. 


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