5

This solution shows how to add custom column to sales order grid, but to add a custom column you need to add the column via xml,the problem is i need to read data collection to get available column data and add it as custom column in sales order grid, in conclusion i want to add multiple columns which will be generated dynamically from database collection data , is there anyway to do this?

  • If you want to add column you have to add column using XML and also you need to add that in datasource. – Ronak Chauhan Jul 10 '17 at 4:49
  • @idham-choudry , did you find any solution of the problem? – Vishal Oct 16 '18 at 9:17
  • //Useful /vendor/magento/module-catalog/Ui/Component/Listing/Columns.php /vendor/magento/module-catalog/view/adminhtml/ui_component/product_listing.xml – Vishal Oct 16 '18 at 14:57

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.