In Magento 2.2.5, I am using datasource in the grid and it is working fine.
I want to use the same datasource in another grid with some filters. I am using vendorname_module_deal_listing_data_source
again in the another grid. But it is keeps loading. I cannot find any errors in console and log anywhere.
Code of di.xml
is:
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/ObjectManager/etc/config.xsd">
<type name="Magento\Framework\View\Element\UiComponent\DataProvider\CollectionFactory">
<arguments>
<argument name="collections" xsi:type="array">
<item name="vendorname_module_deal_listing_data_source" xsi:type="string">Vendorname\Module\Model\ResourceModel\Deal\Collection</item>
</argument>
</arguments>
</type>
<virtualType name="Vendorname\Module\Model\ResourceModel\Deal\Collection" type="Magento\Framework\View\Element\UiComponent\DataProvider\SearchResult">
<arguments>
<argument name="mainTable" xsi:type="string">module_manage_deal</argument>
<argument name="resourceModel" xsi:type="string">Vendorname\Module\Model\ResourceModel\Deal</argument>
</arguments>
</virtualType>
Update:
admin layout Code: https://pastebin.com/ZRw0ug9D
Screenshot: https://prnt.sc/kzqzov
Working Grid's UI Component: https://pastebin.com/Lb7QZmUt
Copied Grid's UI Component: https://pastebin.com/i3DXVita