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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Editing in batch mode

Thread ID:





144790 May 22,2019 08:22 PM UTC May 23,2019 09:04 AM UTC Vue 1
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. 
  <div id="app"> 
     <ejs-grid :dataSource='data' ref="grid" :toolbarClick="toolbarClick" :editSettings='editSettings' :toolbar='toolbar' height='273px'> 
                 .  .  . 
import Vue from "vue"; 
import { GridPlugin,Page, Toolbar, Edit } from "@syncfusion/ej2-vue-grids"; 
import { data } from './datasource.js'; 
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"); 
Sample               : https://codesandbox.io/s/vue-template-i4kmw 
Please get back to us if you need any further assistance on this.  
Pavithra S. 


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