How to Reload Ui Component Grid Tab on Each click with Js

Magento does not allow reload tab content again if we revisit on the tab menu in the admin area. Please follow the step to reload tab content on each click

Step 1: Please open you’re a UI component grid XML file.

Example :

<listing xmlns:xsi="" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
    <argument name="data" xsi:type="array">
        <item name="js_config" xsi:type="array">
                <item name="provider" xsi:type="string">os_needship_listing.os_needship_listing_data_source</item>
            <item name="deps" xsi:type="string">os_needship_listing.os_needship_listing_data_source</item>
    <dataSource name="product_attachement_listing_data_source">
        <argument name="dataProvider" xsi:type="configurableObject">
            <argument name="class" xsi:type="string">WebtechBuzz\Attachemnet\Ui\DataProvider\AttachemnetDataProvider</argument>
            <argument name="name" xsi:type="string">product_attachement_listing_data_source</argument>
            <argument name="primaryFieldName" xsi:type="string">entity_id</argument>
            <argument name="requestFieldName" xsi:type="string">id</argument>
            <argument name="data" xsi:type="array">
    <container name="listing_top">
    <columns name="productattachement_template_columns">

Step 2: Write the reload function with attached js file.

], function(registry){
reloadParent: function () {
   // Ui component grid name (datasource)
    Var grid = 'product_attachement_listing.product_attachement_listing_data_source';
            if(grid) {
                var params = [];
                var target = registry.get(grid);
                if (target && typeof target === 'object') {
                    target.set('params.t ',;

Leave a Reply

Your email address will not be published. Required fields are marked *