Hello there, 2.0.4..
Ok then, I get:
TypeError: cd.indexOf is not a function
if (cd.indexOf(value) != -1) {
pqgrid.dev.js (row 9339)
In
function filterhandler(evt, ui) {
var $toolbar = $grid.find('.pq-toolbar-search'),
$value = $toolbar.find(".filterValue"),
value = $value.val(),
condition = $toolbar.find(".filterCondition").val(),
dataIndx = $toolbar.find(".filterColumn").val(),
filterObject;
var word = value;
if (condition == 'regexp') {
var spl = word.split(" ");
word = "";
for (var n in spl) {
word += spl[ n ];
if (n != spl.length - 1) {
word += "|";
}
}
word = new RegExp(word);
value = word;
}
if (dataIndx == "") {//search through all fields when no field selected.
filterObject = [];
var CM = $grid.pqGrid("getColModel");
for (var i = 0, len = CM.length; i < len; i++) {
var dataIndx = CM[ i ].dataIndx;
filterObject.push({ dataIndx: dataIndx, condition: condition, value: value });
}
}
else {//search through selected field.
filterObject = [{ dataIndx: dataIndx, condition: condition, value: value }];
}
$grid.pqGrid("filter", {
oper: 'replace',
data: filterObject
});
}
when using condition "regex". You said my code logic is good before, so any suggestions?