Our blazing fast Grid component built with pure JavaScript


Post by greg_make »

is this supported, it only works if you select one value, not multiple. I spent a couple of hours building filterFunction but it seems to ignore it. This is the json before reviving the functions.

 {
      "field": "vendorRefId",
      "text": "Vendor",
      "width": 125,
      "sortable": false,
      "hidden": false,
      "renderer": "({ record }) \u003d\u003e record.vendorDisplay ?? record.vendorRefId",
      "autoHeight": true,
      "resizable": true,
      "editor": {
        "type": "combo",
        "filterOperator": "*",
        "pickerWidth": 250,
        "fields": [
          "id",
          "text"
        ],
        "store": {
          "readUrl": "v7.do?actionRefId\u003d2032\u0026orgId\u003d18908677\u0026refGroup\u003dVendor",
          "autoLoad": true,
          "validateFilter": false
        }
      },
      "filterable": {
        "filterField": {
          "type": "combo",
          "valueField": "id",
          "displayField": "text",
          "filterOperator": "*",
          "pickerWidth": 350,
          "multiSelect": true,
          "store": {
            "readUrl": "v7.do?actionRefId\u003d2032\u0026orgId\u003d18908677\u0026refGroup\u003dVendor",
            "autoLoad": true
          }
        }
      }
    

Post by johan.isaksson »

Hi,

you should be able to use a multi select combo for filtering, we use one in this demo for the city column for example:

https://bryntum.com/products/grid/examples/filterbar/

Check the sources for it, hopefully it helps you along the way.

Best regards,
Johan Isaksson

Post by greg_make »

I couldn't see any difference between yours and mine, but gpt figured it out the general solution, I have to have

"operator" : "isIncludedIn",

in order to force the right behaviour


Post by alex.l »

Hi,

Is any further assistance required here?

All the best,
Alex Lazarev

How to ask for help? Please read our Support Policy

We do not write the code in bounds of forum support. If you need help with development, contact us via bryntum.com/services


Post by greg_make »

all good, working fine


Post Reply