0

So, this is my grid layout

<layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/layout_generic.xsd">
<referenceContainer name="root">
 <block class="Magento\Backend\Block\Widget\Grid" name="custom.name">
 <arguments>
 <argument name="dataSource" xsi:type="object">Vendor\Module\Model\ResourceModel\My\Collection\Grid</argument>
 <argument name="id" xsi:type="string">MyGrid</argument>
 <argument name="use_ajax" xsi:type="string">true</argument>
 <argument name="default_sort" xsi:type="string">custom_id</argument>
 <argument name="default_dir" xsi:type="string">DESC</argument>
 <argument name="grid_url" xsi:type="url" path="*/customer/customgrid">
 <param name="_current">1</param>
 </argument>
 </arguments>
 <block class="Magento\Backend\Block\Widget\Grid\ColumnSet" as="grid.columnSet" name="customer.edit.tab.columnSet">
 ....
 </block>
</referenceContainer>

Now the rows are clickable, but I want to make them not clickable with default cursor. How can I do that?

asked Jul 25, 2016 at 14:10

1 Answer 1

0

Find by myself. You should set rowUrl to empty string like this:

<block class="Magento\Backend\Block\Widget\Grid\ColumnSet" as="grid.columnSet" name="customer.test.edit.tab.columnSet">
 <arguments>
 <argument name="rowUrl" xsi:type="array">
 <item name="path" xsi:type="string"></item>
 </argument>
 </arguments>
...
answered Jul 25, 2016 at 14:33

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.