3

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">
    <arguments>
        <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>
    </arguments>
</block>

Screenshot: enter image description here

2
  • try 60px instead of 60 in width argument value
    – Piyush
    Commented Sep 17, 2018 at 12:52
  • Hi @Piyush thanks for suggestion but its not working. Commented Sep 17, 2018 at 13:23

0

Your Answer

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

Browse other questions tagged or ask your own question.