I want to change column width. I don't want any scroller due to a large column width in admin grid.

Here is the code. I am using:

<block class="Magento\Backend\Block\Widget\Grid\Column" as="api_params">
        <argument name="header" xsi:type="string" translate="true">API Parameters</argument>
        <argument name="index" xsi:type="string">api_params</argument>
        <argument name="type" xsi:type="string">text</argument>
        <argument name="width" xsi:type="string">60</argument>
        <argument name="column_css_class" xsi:type="string">col-id</argument>
        <argument name="header_css_class" xsi:type="string">col-id</argument>

Screenshot: enter image description here

  • try 60px instead of 60 in width argument value – Piyush Sep 17 '18 at 12:52
  • Hi @Piyush thanks for suggestion but its not working. – Pankaj Sharma Sep 17 '18 at 13:23

Your Answer

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

Browse other questions tagged or ask your own question.