Hi Dhivya,
Thanks for your help, with your code I had the idea to resolve my issue.
Just to clarify, the method you wrote me is not correct and the code were reversed. This was the final code:
function dataBound(args) {
if (this.currentViewData.length > 0) {
this.autoFitColumns();
} else {
this.autoFitColumns(["SheetID", "PatientID", "NurseID", "Created"]);
}
}
Thanks again! Regards!