Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
151398 | Feb 10,2020 02:25 PM UTC | Feb 12,2020 03:44 PM UTC | Vue | 3 |
![]() |
Tags: Data Grid |
<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);
}
}
}
);
} |
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.
This page will automatically be redirected to the sign-in page in 10 seconds.