How can I make a filter for null values of my order ID

<column name="order_id">
        <argument name="data" xsi:type="array">
            <item name="config" xsi:type="array">
                <item name="bodyTmpl" xsi:type="string">ui/grid/cells/html</item>
                <item name="filter" xsi:type="string">text</item>
                <item name="editor" xsi:type="array">
                    <item name="editorType" xsi:type="string">text</item>
                    <item name="validation" xsi:type="array">
                        <item name="required-entry" xsi:type="boolean">false</item>
                <item name="label" xsi:type="string" translate="true">Order ID</item>

enter image description here

If a enter NULL in my filtering it should just show all row where Order ID is NULL or Blank

enter image description here


This can be done easily, first make you sure if there are no values then column has null value instead of empty. Then when use filter it will wo

| improve this answer | |
  • dafuq? Is something missing on the comment? – gabrieliri Jun 25 at 2:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.