ColumnFilter type = text no wildcard and own columnFilter type

ColumnFilter type = text no wildcard and own columnFilter type

svensonsvenson Posts: 2Questions: 0Answers: 0
edited July 2013 in General
Hi,

I have a column "size", with a lot of values (no select for filtering possible) like "L", "XL", "XXL" and so on. The following will implement the filtering:
[code].columnFilter({
aoColumns: [
{type: "text", bRegex:true}, /* column "article_number" */
{type: "text", bRegex:true}, /* column "size" */
null,
null,
null,
null,
],
});[/code]How is it possible to search for the column "size" not with wildcard "*value*"? If I enter for filtering the size "L", I do not want to get results with size like "XL" or "XXL"?

Other question is, how can I filter the column "article_number", but in the values there should be replaced the spaces for filtering (but not for the view). An article number looks like "23 083" or "83 874" an for filtering I do not want to enter the space, only "230" for example.

Thanks a lot for your help.

Best regards
Sven.

Replies

  • svensonsvenson Posts: 2Questions: 0Answers: 0
    Ok, I can search like this: "^L$" (regex), but is it possible to change the standard filtering or make an own (for example type: "no_wildcard_text" or name it "exact_match_text"?. Our customer do not want to type in the "^" and "$".

    Thanks a lot!
This discussion has been closed.