If i want to get a cell by column id i have to do the following
var holidayNameIndex = xon.reports.grid.getColIndexById('holidayName');
grid.cells(rowId,holidayNameIndex );
It would make more sense to just do
grid.cellByColId(rowId,'holidayName');
Would it be possible to add the folowing code to dhtmlx so it can be done
dhtmlXGridObject.prototype.cellByColId = function (rowId,columnId)
{
var index = this.getColIndexById(columnId)
return this.cells(rowId,index);
}
I have got the following in my code to add this function until dhtmlx add it (I hope)
if(dhtmlXGridObject.prototype.cellByColId == null)
{
dhtmlXGridObject.prototype.cellByColId = function (rowId,columnId)
{
var index = this.getColIndexById(columnId)
return this.cells(rowId,index);
}
}