Grid Filters issues

    $strXML .= “”;

    $strXML .= “”;

        $strXML .= “,#combo_filter,#numeric_filter,#text_filter,”;

    $strXML .= “”;

    $strXML .= “”;



I want to know how can I set the values



- greater than (like: “>100”),

- less than (like: “<100”),

- equel to (like “=100” or “100”),

- range (like “10…100”)



for the numeric filters?





Sorry, but I’m not sure that fully understood your question.
Do you mean, that you need to set some value in filter input from the script?

In case of grid 2.1

grid.getFilterElement(index).value=">100";
grid.filterByAll();

where index - index of related column

I have a column with numeric values in my grid, and I want to have a combo filter in header with some options like these:

- greater than (like: “>100”),

- less than (like: “<100”),

- equel to (like “=100” or “100”),

- range (like “10…100”)


And, I want to know how can I set in my XML file these values for the combo filter. Thanks again…


Unfortunately numeric filtering limited to the “#numeric_filter” and can’t be easily converted to select-like visual mode.
You can place your own select in header and call filterBy with necessary parameters from onchange event of selectbox. ( you can use filtering function instead of constant , as second parameter, so any kind of rules can be defined )