grid.buffer.fetch(-1);
}
+function grid_update_filters(grid)
+{
+ var todo = false;
+ for (var c=0; c < grid.headerColCnt; c++) {
+ var fmt = grid.columns[c].format;
+ if (typeof fmt.filterUI != 'string') continue;
+ if (fmt.filterUI != 's') continue;
+ $(grid.filterId(c)).options.length = 1;
+
+ var options = {};
+ Object.extend(options, grid.buffer.ajaxOptions);
+ var colnum = typeof(fmt.filterCol)=='number' ? fmt.filterCol : c;
+
+ options.parameters = 'id='+grid.tableId+'&distinct='+colnum;
+ options.onComplete = grid.filterValuesUpdate.bind(grid,c);
+ new Ajax.Request(grid.buffer.dataSource, options);
+ }
+}
+
var calendars = new Array();
function calendar_callback(value)
{