|
App.vue.
beforeDataBound: function(args) {
var gridObj = document.getElementsByClassName("e-grid")[0].ej2_instances[0];
if (args.count === 0) {
gridObj.getContent().children[0].classList.add("c-scroll");
}
}, |
|
App.vue
beforeDataBound: function(args) {
firstUpdate = true;
count = args.count;
var gridObj = document.getElementsByClassName("e-grid")[0]
.ej2_instances[0];
if (args.count === 0) {
gridObj.getContent().children[0].classList.add("c-scroll");
}
},
rowDataBound: function(args) {
var rowIndex = parseInt(args.row.getAttribute("aria-rowindex"));
if (rowIndex !== count - 1 && firstUpdate) {
args.row.querySelector(".e-rowcell").innerText = rowIndex;
} else if (firstUpdate) {
args.row.querySelector(".e-rowcell").innerText = rowIndex;
firstUpdate = false;
}
} |
|
App.vue
beforeDataBound: function(args) {
var gridObj = document.getElementsByClassName("e-grid")[0]
.ej2_instances[0];
if (args.count === 0) {
gridObj.getContent().children[0].classList.add("c-scroll");
}
},
<style>
.e-grid .e-content.c-scroll {
overflow-y: auto;
}
</style> |
|
App.vue
rowDataBound: function(args) {
if (args.row.querySelector(".cc-count")) {
args.row.querySelector(".cc-count").innerText = parseInt(
args.row.getAttribute("aria-rowindex")
);
}
},
queryCellInfo: function(args) {
if (args.column.field === "OrderID") {
args.cell.classList.add("cc-count");
}
}
}, |