Hello, i found a bug in the latest release (i own a commercial licence)
To be able to filter grid on custom filter options sended by the options calculated by the connector php script in dynamical loading, i have to comment the two following lines in the ext/filter.js script
//var val=this._get_cell_value(col[i],column);
//if (val && (!col[i]._childIndexes || col[i]._childIndexes[column]!=col[i]._childIndexes[column-1])) c[val]=true;
Look, it at line 12 of dhtmlXGridObject.prototype.collectValue of dhtmlxgrid_filter.js script.
/**
* @desc: get all possible values in column
* @type: public
* @param: column - {number} zero based index of column
* @returns: {array} array of all possible values in column
@edition: Professional
@topic: 0
*/
dhtmlXGridObject.prototype.collectValues=function(column){
var value=this.callEvent(“onCollectValues”,[column]);
if (value!==true) return value;
if (this.isTreeGrid()) return this.collectTreeValues(column);
this.dma(true)
this._build_m_order();
column=this._m_order?this._m_order[column]:column;
var c={}; var f=[];
var col=this._f_rowsBuffer||this.rowsBuffer;
for (var i=0; i<col.length; i++){
//var val=this._get_cell_value(col[i],column);
//if (val && (!col[i]._childIndexes || col[i]._childIndexes[column]!=col[i]._childIndexes[column-1])) c[val]=true;
}
Could you inspect this bug ?
Best regards
Problem confirmed, oncoming update ( connectors 1.0 ) will contain update to prevent such problems in future.
In current version problem will appear if select filter used against the grid with dyn. loading mode - you can use your commented version, or updated js file, which will work for both server side and client side filters correctly.
dhtmlxgrid_filter.zip (4.41 KB)