I have an options array in below format.

array (size=3)
  0 => 
    array (size=2)
      'value' => string 'one' (length=3)
      'label' => string 'Number One' (length=10)
  1 => 
    array (size=2)
      'value' => string 'two' (length=3)
      'label' => string 'Number Two' (length=10)
  2 => 
    array (size=2)
      'value' => string 'three' (length=5)
      'label' => string 'Number Three' (length=12)

In admin grid column data label is appearing, which is correct.
But when I am exporting the same grid the instead of data label, the data value is appearing the exported CSV and XML.
The Attribute is of type select.
Code is ui_component xml is as follows

<column name="mycol" component="Magento_Ui/js/grid/columns/select">
                <options class="Anshu\Mygrid\Model\Mygrid\Source\Myvalue"/>
                <label translate="true">My Value</label>

What can be the issue here?

  • Did you find any solution for this ? – Pankaj Pareek Feb 5 '19 at 7:26
  • @PankajPareek No, I didn't found any solution for this. Kindly post it here if you get any solution. – Anshu Mishra Feb 5 '19 at 7:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.