0

I have created a custom module where i add data. This data is displayed on the grid. On the grid i have enable inline editing.

Now i want to disable this inline editing only when certain condition is match.

Like the parameter passed on the page is x then show the inline edit else disable inline edit.

  • did you find any solution?? – Hiren Apr 9 '19 at 9:40
  • No. I had to create different controller, as i had less time for RND. – Avesh Naik Apr 9 '19 at 10:07
2

For Example: if you want to disable inline edit

app/code/Custom/Module/view/adminhtml/ui_component/customer_listing.xml

<listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
   <columns name="customer_columns">
        <settings>
            <editorConfig>
            <param name="enabled" xsi:type="boolean">false</param>

</editorConfig>
</settings>
</columns>
</listing>

This following piece of code should disable the inline editing feature.

  • Element 'editorConfig': This element is not expected. – Avesh Naik Mar 1 '19 at 6:26
  • what version of magento you are using..? – Magento Dev Mar 1 '19 at 17:11
  • 2.2.6 version of Magento – Avesh Naik Mar 4 '19 at 6:06

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.