Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
144984 | May 30,2019 04:17 PM UTC | May 31,2019 11:28 AM UTC | jQuery | 1 |
![]() |
Tags: ejTreeGrid |
<script type="text/javascript">
var onclick = function (args) {
alert("hit"); // do your stuff here
}
var onQueryCellInfo = function (args) {
if (!args.data.hasChildRecords) {
if (args.cell.classList.contains("e-unboundcell")) {
args.cell.querySelector('.e-unboundcelldiv').style.display = "none"
}
}
}
let grid: TreeGrid = new TreeGrid(
{
……………………………
queryCellInfo: onQueryCellInfo,
columns: [
{
……………..
{
headerText: 'Custom Button', width: 100,
commands: [
{ buttonOption: { content: ' Details', click: onclick } }]
}
]
});
grid.appendTo('#Grid');
|
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.