BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
@(Html.EJS().Grid("HojasGrid").Columns(col =>
{
. . . . . .
col.HeaderText("").Width("250").Commands(commands).Add();
})
.DataBound("dataBound")
.Render()
)
function dataBound(args) {
if (this.curretViewRecords.length > 0) { // check grid have data
this.autoFitColumns(["SheetID", "PatientID", "NurseID", "Created"]);// skip command column } else {
this.autoFitColumns(); //you can either do the above or perform autofit for all columns()
}
} |