<ejs-grid
:rowSelected="rowSelected">
.
</ejs-grid>
rowSelected: function(args){
console.log(args.data);
//You can get the Row details in rowSelected event
} |
load: function() {
this.$refs.grid.ej2Instances.element.addEventListener('mousedown', function(e) {
var instance = this.ej2_instances[0];
if (e.target.classList.contains("e-rowcell")) {
let index = parseInt(e.target.getAttribute("Index"));
let colindex = parseInt(e.target.getAttribute("aria-colindex"));
let field = instance.getColumns()[colindex].field;
instance.editModule.editCell(index, field);
};
});
load: function(args) {
this.$refs.grid.ej2Instances.element.addEventListener(
"mousedown",
function(e) {
var instance = this.ej2_instances[0];
if (e.target.classList.contains("e-rowcell")) {
let index = parseInt(e.target.getAttribute("Index"));
let colindex = parseInt(e.target.getAttribute("aria-colindex"));
let field = instance.getColumns()[colindex].field;
if (field === "Verified") {
instance.editModule.updateCell(index, field, e.target.querySelector(".e-check") ? false : true
);
} else {
instance.editModule.editCell(index, field);
}
}
}
);
} |