Never miss Magento tips, tricks, tutorials, and news.
Grids in Magento 2 are a way to list the items in a database table for better management. Grids are used to represent, filter and sort various data in the Magento backend using UI component.
As the default Magento 2 admin grid disables sorting on Thumbnail, Salable Quantity and Actions, you can also make column sorting false using UI component in Magento 2 in your custom grid or columns.
For instance, the columns that contain buttons, URL link or code does not need sorting. In that scenario, use the below method and disable the sorting for custom columns.
Method to Make Column Sorting False Using UI Component in Magento 2
- Add tag <sortable> in your code
<column name=“store_id” class=“MagentoStoreUiComponentListingColumnStore”>
<label translate=“true”>Purchase Point</label>
You just have set false in <sortable> tag and the sorting disables!
Feel free to share the solution with Magento Community via social media.
If you find any doubt regarding this post, do mention them in the Comment section below.
Thank you for subscribing.
I would be happy to help.
Get Weekly Updates
They are also used to perform mass actions such as updates and deletes. The Grid enables you to sort single and multiple data-bound columns.
Something went wrong.