I just Create ui_component Vender/Module/view/adminhtml/ui_component and in this I user

<column name="check_status" component="Magento_Ui/js/grid/columns/select">
               <options class="PME\MakeAnOffer\Controller\Adminhtml\Index\Status\ProductStatus"/>
               <label translate="true">Status</label>

now its works perfectly for 2.2.7 and 2.3.0 but in case of 2.1.16 it give me the error

enter image description here

and when I remove these lines which I mention in my code then its works perfectly how can I set this??? or any alternative in place of <setting> or component

  • the above code is for heading. You should use field.
    – sudo55
    Apr 15, 2019 at 10:55

1 Answer 1

<column name="check_status">
    <argument name="data" xsi:type="array">
        <item name="options" xsi:type="object">PME\MakeAnOffer\Controller\Adminhtml\Index\Status\ProductStatus</item>
        <item name="config" xsi:type="array">
            <item name="filter" xsi:type="string">select</item>
            <item name="dataType" xsi:type="string">select</item>
            <item name="component" xsi:type="string">Magento_Ui/js/grid/columns/select</item>
            <item name="label" xsi:type="string" translate="true">Status</item>
            <item name="sortOrder" xsi:type="number">40</item>

try this code

  • Sir I need the code for the Grid
    – Asad Khan
    Apr 15, 2019 at 10:57
  • 2
    check updated answer
    – ASQ
    Apr 15, 2019 at 11:01
  • Thank you it works for me.
    – Asad Khan
    Apr 15, 2019 at 11:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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