2

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">
           <settings>
               <options class="PME\MakeAnOffer\Controller\Adminhtml\Index\Status\ProductStatus"/>
               <filter>select</filter>
               <dataType>select</dataType>
               <label translate="true">Status</label>
           </settings>
       </column>  

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 at 10:55
4
<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>
        </item>
    </argument>
</column> 

try this code

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

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.