BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
$(function () {
$("#Grid").ejGrid({
. . .
rowDataBound: "onRowdataBound",
});
});
function onRowdataBound(args){
if(!ej.isNullOrUndefined(args.data.StartDate)){
//Disable the command button, if the StartDate is not null
args.row.find(".e-unboundcell").find("button").ejButton("disable");
}
}
|
Thanks Saravanan for your response. This solution work very well. It's possible to hide the button and not disable only ?
Other little question. It's possible to enter the stackedHeaderColumns? If you give a look to my grid you can find the centered attribute
function onRowdataBound(args){
if(!ej.isNullOrUndefined(args.data.StartDate)){
//Hide the command button, if the StartDate is not null
args.row.find(".e-unboundcell").find("button").addClass("e-hide");
}
} |
$("#Grid").ejGrid({
. . .
showStackedHeader:true,
stackedHeaderRows: [{
stackedHeaderColumns:
[
{ headerText: "", column: "Id,CountryName,IstatCode,IsoCode" },
{ headerText: "Validità", column: "StartDate,EndDate", textAlign: "center" },
{ headerText: "Azioni", column: "editField,deleteField", textAlign: "center" }
]
}],
}); |
Thanks Saravanan your solution work very well. Thanks for your help
Stefano C.