this.sub_sorts = [];
+ this.count_for_display = 0;
+
if (!this.node) throw('Could not find element ' + id);
switch(this.node.nodeName) {
case 'listbox' :
}
if (typeof params.map_row_to_column == 'function') {
+ if (this.columns[i].id == 'lineno'){
+
+ label = this.count_for_display.toString();
+ this.count_for_display++;
+
+ } else {
- label = params.map_row_to_column(params.row,this.columns[i],this.scratch_data);
-
+ label = params.map_row_to_column(params.row,this.columns[i],this.scratch_data);
+
+ }
} else if (typeof this.map_row_to_column == 'function') {
+ if (this.columns[i].id == 'lineno'){
+
+ label = this.count_for_display.toString();
+ this.count_for_display++;
+
+ } else {
+
+ label = this.map_row_to_column(params.row,this.columns[i],this.scratch_data);
- label = this.map_row_to_column(params.row,this.columns[i],this.scratch_data);
-
+ }
}
if (this.columns[i].type == 'checkbox') { treecell.setAttribute('value',label); } else { treecell.setAttribute('label',label ? label : ''); }
s += ('treecell = ' + treecell + ' with label = ' + label + '\n');