Skip to content

How to open modal popup while changing the order grid select option?

sales_order_grid.xml

<column name="order_status">
    <argument name="data" xsi:type="array">
        <item name="options" xsi:type="object">ModuleCustomerOrderUiComponentListingColumnOptions</item>
        <item name="config" xsi:type="array">
            <item name="filter" xsi:type="string">select</item>
            <item name="label" xsi:type="string" translate="true">Order</item>
            <item name="component" xsi:type="string">Magento_Ui/js/grid/columns/select</item>
            <item name="dataType" xsi:type="string">select</item>
            <item name="editor" xsi:type="array">
                <item name="editorType" xsi:type="string">select</item>
                <item name="validation" xsi:type="array">
                    <item name="required-entry" xsi:type="boolean">false</item>
                </item>
            </item>
        </item>
    </argument>
</column>

Options.php

class Options implements MagentoFrameworkOptionArrayInterface
{
   
    public function toOptionArray()
    {
        return [
            ['value' => 0, 'label' => __('Ship')],
            ['value' => 1, 'label' => __('Complete')]
        ];
    }
}

enter image description here

How I can add an onchange event and open ship grid in that popup?