Magento 2 - Grid Table Show Same Row (Data Repeatedly)

I wrote these tutorials for myself in future when I forget for the next steps.
Search for a command to run...

I wrote these tutorials for myself in future when I forget for the next steps.
No comments yet. Be the first to comment.
When you provision an Ubuntu instance on Oracle Cloud, you'll notice something different from standard Ubuntu installations: the system uses iptables instead of ufw for firewall management. This disti

When developing web applications locally, HTTPS is often overlooked. Yet, modern browsers and APIs increasingly require secure connections—even in development. That’s where mkcert comes in: a simple t

Testing the checkout success page in Magento 2 can be frustrating. By default, once an order is placed, Magento clears the quote session, meaning you can’t simply refresh or revisit the success page without going through the entire checkout process a...

Magento Commerce (EE) offers powerful features, but for many teams, Open Source (CE) is leaner, lighter, and more sustainable. If you're migrating from EE to CE, the Opengento downgrade tool provides a clean, scriptable way to remove proprietary modu...

If you’ve ever checked your Apache error logs and seen something like this: Code [core:error] (13)Permission denied: access to /robots.txt denied (filesystem path '/home/username/sites') because search permissions are missing on a component of the pa...

Are you facing the problem that when you filter the result, and clear the filter, then you found your rows are same? Or are you facing this problem when you go to next page, and went back to previous page?
This problem maybe is because you have another primary id than what magento usually used, that is entity_id. So you need to replace the primary id to your primary id on your listing xml and inside your data provider syntax. e.g. I have primary id named example_id, so I need to add storageConfig>indexField and the value is my primary id which is example_id.
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
............
<item name="storageConfig" xsi:type="array">
<item name="indexField" xsi:type="string">example_id</item>
</item>
............
</item>
</argument>
And for my example above, my grid will be like this : (after I went to page 2 and go back to page 1)

Page 2

Page 1