How we are Integrate the GridDataProvider component with the Listing component

How we are Integrate the GridDataProvider component with the Listing component


Hi Magento friend today's i'm share what is GridDataProvider component

In Uicomponent The GridDataProvider UI component is a data provider for the Listing component. It provides data in specific format which is shared among all UI components in the scope of the Listing component.

How we are Integrate the GridDataProvider component with the Listing component - 


<listing>

    <dataSource name="listing_data_source" component="Magento_Ui/js/grid/provider">

        <settings>

            <storageConfig>

                <param name="indexField" xsi:type="string">entity_id</param>

            </storageConfig>

            <updateUrl path="mui/index/render"/>

        </settings>

        <aclResource>Vendor_Module::resource</aclResource>

        <dataProvider class="Magento\Framework\View\Element\UiComponent\DataProvider\DataProvider" name="listing_data_source">

            <settings>

                <requestFieldName>id</requestFieldName>

                <primaryFieldName>entity_id</primaryFieldName>

            </settings>

        </dataProvider>

    </dataSource>

</listing>


Deepak Kumar Bind

Success is peace of mind, which is a direct result of self-satisfaction in knowing you made the effort to become the best of which you are capable.

Post a Comment

If you liked this post please do not forget to leave a comment. Thanks

Previous Post Next Post