Status not shown label in admin grid in magento 2How to display Yes/No values in admin grid (Magento2)?How can i rewrite TierPrice Block in Magento2Update Const template at Magento 2 ClassMagento model extension experiment, return: “class does not exist”How to add filtering to custom table field column in Customers admin grid in Magento2?main.CRITICAL: Plugin class doesn't existMagento 2: How to override newsletter Subscriber modelMagento 2.1 Create a filter in the product grid by new attributeMagento 2 Add new field to Magento_User admin formMagento offline custom Payment method with drop down listMagento 2.3 Can't view module's front end page output?

prove that the matrix A is diagonalizable

Memorizing the Keyboard

Can I ask the recruiters in my resume to put the reason why I am rejected?

Is Lorentz symmetry broken if SUSY is broken?

A reference to a well-known characterization of scattered compact spaces

Stopping power of mountain vs road bike

Western buddy movie with a supernatural twist where a woman turns into an eagle at the end

If human space travel is limited by the G force vulnerability, is there a way to counter G forces?

1960's book about a plague that kills all white people

Facing a paradox: Earnshaw's theorem in one dimension

Is it legal for company to use my work email to pretend I still work there?

Why "Having chlorophyll without photosynthesis is actually very dangerous" and "like living with a bomb"?

How can I tell someone that I want to be his or her friend?

Emailing HOD to enhance faculty application

Forgetting the musical notes while performing in concert

How could indestructible materials be used in power generation?

Blender 2.8 I can't see vertices, edges or faces in edit mode

How to draw the figure with four pentagons?

Is there a hemisphere-neutral way of specifying a season?

How to model explosives?

What reasons are there for a Capitalist to oppose a 100% inheritance tax?

How can I make my BBEG immortal short of making them a Lich or Vampire?

Anagram holiday

How to say in German "enjoying home comforts"



Status not shown label in admin grid in magento 2


How to display Yes/No values in admin grid (Magento2)?How can i rewrite TierPrice Block in Magento2Update Const template at Magento 2 ClassMagento model extension experiment, return: “class does not exist”How to add filtering to custom table field column in Customers admin grid in Magento2?main.CRITICAL: Plugin class doesn't existMagento 2: How to override newsletter Subscriber modelMagento 2.1 Create a filter in the product grid by new attributeMagento 2 Add new field to Magento_User admin formMagento offline custom Payment method with drop down listMagento 2.3 Can't view module's front end page output?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1
















shippingbar_post_listing.xml




<column name="status">
<argument name="data" xsi:type="array">
<item name="options" xsi:type="object">CMShippingbarModelStatus</item>
<item name="config" xsi:type="array">
<item name="filter" xsi:type="string">text</item>
<item name="editor" xsi:type="array">
<item name="editorType" xsi:type="string">text</item>
<item name="validation" xsi:type="array">
<item name="required-entry" xsi:type="boolean">true</item>
</item>
</item>
<item name="label" xsi:type="string" translate="true">Status</item>
</item>
</argument>
</column>



CMShippingbarModelStatus.php




 <?php

namespace CMShippingbarModel;

use MagentoFrameworkDataOptionSourceInterface;

/**
* ProductStatus Class
*/
class Status implements OptionSourceInterface

/**
* @var CMShippingbarModelProductlabel
*/
protected $model;


/**
* Constructor
*
* @param CMShippingbarModelModelFile $model
*/
protected function _construct(CMShippingbarModelShippingbar $model)

$this->model = $model;


/**
* Get options
*
* @return array
*/
public function toOptionArray()

$options[] = ['label' => '', 'value' => ''];
$availableOptions =$this->model->getAvailableStatuses();
foreach ($availableOptions as $key => $value)
$options[] = [
'label' => $value,
'value' => $key,
];

return $options;






CMShippingbarModelShippingbar.php




 <?php
namespace CMShippingbarModel;

class Shippingbar extends MagentoFrameworkModelAbstractModel

const STATUS_ENABLED = 1;
const STATUS_DISABLED = 0;



protected function _construct()

$this->_init('CMShippingbarModelResourceModelShippingbar');



public function getAvailableStatuses()

return [self::STATUS_ENABLED => __('Enabled'), self::STATUS_DISABLED => __('Disabled')];




enter image description here










share|improve this question






























    1
















    shippingbar_post_listing.xml




    <column name="status">
    <argument name="data" xsi:type="array">
    <item name="options" xsi:type="object">CMShippingbarModelStatus</item>
    <item name="config" xsi:type="array">
    <item name="filter" xsi:type="string">text</item>
    <item name="editor" xsi:type="array">
    <item name="editorType" xsi:type="string">text</item>
    <item name="validation" xsi:type="array">
    <item name="required-entry" xsi:type="boolean">true</item>
    </item>
    </item>
    <item name="label" xsi:type="string" translate="true">Status</item>
    </item>
    </argument>
    </column>



    CMShippingbarModelStatus.php




     <?php

    namespace CMShippingbarModel;

    use MagentoFrameworkDataOptionSourceInterface;

    /**
    * ProductStatus Class
    */
    class Status implements OptionSourceInterface

    /**
    * @var CMShippingbarModelProductlabel
    */
    protected $model;


    /**
    * Constructor
    *
    * @param CMShippingbarModelModelFile $model
    */
    protected function _construct(CMShippingbarModelShippingbar $model)

    $this->model = $model;


    /**
    * Get options
    *
    * @return array
    */
    public function toOptionArray()

    $options[] = ['label' => '', 'value' => ''];
    $availableOptions =$this->model->getAvailableStatuses();
    foreach ($availableOptions as $key => $value)
    $options[] = [
    'label' => $value,
    'value' => $key,
    ];

    return $options;






    CMShippingbarModelShippingbar.php




     <?php
    namespace CMShippingbarModel;

    class Shippingbar extends MagentoFrameworkModelAbstractModel

    const STATUS_ENABLED = 1;
    const STATUS_DISABLED = 0;



    protected function _construct()

    $this->_init('CMShippingbarModelResourceModelShippingbar');



    public function getAvailableStatuses()

    return [self::STATUS_ENABLED => __('Enabled'), self::STATUS_DISABLED => __('Disabled')];




    enter image description here










    share|improve this question


























      1












      1








      1









      shippingbar_post_listing.xml




      <column name="status">
      <argument name="data" xsi:type="array">
      <item name="options" xsi:type="object">CMShippingbarModelStatus</item>
      <item name="config" xsi:type="array">
      <item name="filter" xsi:type="string">text</item>
      <item name="editor" xsi:type="array">
      <item name="editorType" xsi:type="string">text</item>
      <item name="validation" xsi:type="array">
      <item name="required-entry" xsi:type="boolean">true</item>
      </item>
      </item>
      <item name="label" xsi:type="string" translate="true">Status</item>
      </item>
      </argument>
      </column>



      CMShippingbarModelStatus.php




       <?php

      namespace CMShippingbarModel;

      use MagentoFrameworkDataOptionSourceInterface;

      /**
      * ProductStatus Class
      */
      class Status implements OptionSourceInterface

      /**
      * @var CMShippingbarModelProductlabel
      */
      protected $model;


      /**
      * Constructor
      *
      * @param CMShippingbarModelModelFile $model
      */
      protected function _construct(CMShippingbarModelShippingbar $model)

      $this->model = $model;


      /**
      * Get options
      *
      * @return array
      */
      public function toOptionArray()

      $options[] = ['label' => '', 'value' => ''];
      $availableOptions =$this->model->getAvailableStatuses();
      foreach ($availableOptions as $key => $value)
      $options[] = [
      'label' => $value,
      'value' => $key,
      ];

      return $options;






      CMShippingbarModelShippingbar.php




       <?php
      namespace CMShippingbarModel;

      class Shippingbar extends MagentoFrameworkModelAbstractModel

      const STATUS_ENABLED = 1;
      const STATUS_DISABLED = 0;



      protected function _construct()

      $this->_init('CMShippingbarModelResourceModelShippingbar');



      public function getAvailableStatuses()

      return [self::STATUS_ENABLED => __('Enabled'), self::STATUS_DISABLED => __('Disabled')];




      enter image description here










      share|improve this question

















      shippingbar_post_listing.xml




      <column name="status">
      <argument name="data" xsi:type="array">
      <item name="options" xsi:type="object">CMShippingbarModelStatus</item>
      <item name="config" xsi:type="array">
      <item name="filter" xsi:type="string">text</item>
      <item name="editor" xsi:type="array">
      <item name="editorType" xsi:type="string">text</item>
      <item name="validation" xsi:type="array">
      <item name="required-entry" xsi:type="boolean">true</item>
      </item>
      </item>
      <item name="label" xsi:type="string" translate="true">Status</item>
      </item>
      </argument>
      </column>



      CMShippingbarModelStatus.php




       <?php

      namespace CMShippingbarModel;

      use MagentoFrameworkDataOptionSourceInterface;

      /**
      * ProductStatus Class
      */
      class Status implements OptionSourceInterface

      /**
      * @var CMShippingbarModelProductlabel
      */
      protected $model;


      /**
      * Constructor
      *
      * @param CMShippingbarModelModelFile $model
      */
      protected function _construct(CMShippingbarModelShippingbar $model)

      $this->model = $model;


      /**
      * Get options
      *
      * @return array
      */
      public function toOptionArray()

      $options[] = ['label' => '', 'value' => ''];
      $availableOptions =$this->model->getAvailableStatuses();
      foreach ($availableOptions as $key => $value)
      $options[] = [
      'label' => $value,
      'value' => $key,
      ];

      return $options;






      CMShippingbarModelShippingbar.php




       <?php
      namespace CMShippingbarModel;

      class Shippingbar extends MagentoFrameworkModelAbstractModel

      const STATUS_ENABLED = 1;
      const STATUS_DISABLED = 0;



      protected function _construct()

      $this->_init('CMShippingbarModelResourceModelShippingbar');



      public function getAvailableStatuses()

      return [self::STATUS_ENABLED => __('Enabled'), self::STATUS_DISABLED => __('Disabled')];




      enter image description here







      magento2 uicomponent






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 2 days ago









      Ghulam.M

      29511




      29511










      asked 2 days ago









      divya sekardivya sekar

      35314




      35314




















          2 Answers
          2






          active

          oldest

          votes


















          1















          In shippingbar_post_listing.xml file.




          <column name="status">
          <argument name="data" xsi:type="array">
          <item name="options" xsi:type="object">CMShippingbarUiComponentListingColumnStatus</item><item name="config" xsi:type="array">
          <item name="sortOrder" xsi:type="number">60</item>
          <item name="filter" xsi:type="string">select</item> <item name="label" translate="true" xsi:type="string">Status</item>
          <item name="component" xsi:type="string">Magento_Ui/js/grid/columns/select</item>
          <item name="dataType" xsi:type="string">select</item>
          <item name="editor" xsi:type="array">
          <item name="editorType" xsi:type="string">select</item>
          </item>
          </item>
          </argument>
          </column>



          CMShippingbarUiComponentListingColumnStatus.php




          <?php

          namespace CMShippingbarUiComponentListingColumn;

          class Status implements MagentoFrameworkOptionArrayInterface

          /**
          * Options getter
          *
          * @return array
          */
          public function toOptionArray()

          return [['value' => 1, 'label' => __('Enable')], ['value' => 0, 'label' => __('Disable')]];




          I hope it helps!






          share|improve this answer

























          • Error comes : ( ! ) Fatal error: Uncaught Error: Call to a member function getAvailableStatuses() on null in

            – divya sekar
            2 days ago












          • Have you add getAvailableStatuses() in your model file?

            – Chirag Patel
            2 days ago











          • s i added in my model file

            – divya sekar
            2 days ago











          • can you share your updated code in your question?

            – Chirag Patel
            2 days ago






          • 1





            You can try with this magento.stackexchange.com/questions/217444/… It might work for you.

            – Chirag Patel
            2 days ago


















          1














          try this way...
          and shippingbar_post_listing.xml in my code replace



          <column name="status">
          <argument name="data" xsi:type="array">
          <item name="options" xsi:type="object">CMShippingbarUiComponentListingColumnStatus</item><item name="config" xsi:type="array">
          <item name="sortOrder" xsi:type="number">60</item>
          <item name="filter" xsi:type="string">select</item> <item name="label" translate="true" xsi:type="string">Status</item>
          <item name="component" xsi:type="string">Magento_Ui/js/grid/columns/select</item>
          <item name="dataType" xsi:type="string">select</item>
          <item name="editor" xsi:type="array">
          <item name="editorType" xsi:type="string">select</item>
          </item>
          </item>
          </argument>
          </column>


          and CMShippingbarUiComponentListingColumnStatus.php code this way..



          <?php

          namespace CMShippingbarUiComponentListingColumn;

          class Status implements MagentoFrameworkOptionArrayInterface

          /**
          * Options getter
          *
          * @return array
          */
          public function toOptionArray()

          return [['value' => 1, 'label' => __('Enable')], ['value' => 0, 'label' => __('Disable')]];







          share|improve this answer

























          • In which file @rakesh

            – divya sekar
            2 days ago











          • its not working rakesh

            – divya sekar
            2 days ago











          • you have my code use and replace it?

            – Rakesh Donga
            2 days ago











          • S I did it, its again show status '0' or '1'

            – divya sekar
            2 days ago











          • prnt.sc/n6dyv9 i used it but it replicate same prnt.sc/n6dzm6

            – divya sekar
            2 days ago












          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "479"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f268336%2fstatus-not-shown-label-in-admin-grid-in-magento-2%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1















          In shippingbar_post_listing.xml file.




          <column name="status">
          <argument name="data" xsi:type="array">
          <item name="options" xsi:type="object">CMShippingbarUiComponentListingColumnStatus</item><item name="config" xsi:type="array">
          <item name="sortOrder" xsi:type="number">60</item>
          <item name="filter" xsi:type="string">select</item> <item name="label" translate="true" xsi:type="string">Status</item>
          <item name="component" xsi:type="string">Magento_Ui/js/grid/columns/select</item>
          <item name="dataType" xsi:type="string">select</item>
          <item name="editor" xsi:type="array">
          <item name="editorType" xsi:type="string">select</item>
          </item>
          </item>
          </argument>
          </column>



          CMShippingbarUiComponentListingColumnStatus.php




          <?php

          namespace CMShippingbarUiComponentListingColumn;

          class Status implements MagentoFrameworkOptionArrayInterface

          /**
          * Options getter
          *
          * @return array
          */
          public function toOptionArray()

          return [['value' => 1, 'label' => __('Enable')], ['value' => 0, 'label' => __('Disable')]];




          I hope it helps!






          share|improve this answer

























          • Error comes : ( ! ) Fatal error: Uncaught Error: Call to a member function getAvailableStatuses() on null in

            – divya sekar
            2 days ago












          • Have you add getAvailableStatuses() in your model file?

            – Chirag Patel
            2 days ago











          • s i added in my model file

            – divya sekar
            2 days ago











          • can you share your updated code in your question?

            – Chirag Patel
            2 days ago






          • 1





            You can try with this magento.stackexchange.com/questions/217444/… It might work for you.

            – Chirag Patel
            2 days ago















          1















          In shippingbar_post_listing.xml file.




          <column name="status">
          <argument name="data" xsi:type="array">
          <item name="options" xsi:type="object">CMShippingbarUiComponentListingColumnStatus</item><item name="config" xsi:type="array">
          <item name="sortOrder" xsi:type="number">60</item>
          <item name="filter" xsi:type="string">select</item> <item name="label" translate="true" xsi:type="string">Status</item>
          <item name="component" xsi:type="string">Magento_Ui/js/grid/columns/select</item>
          <item name="dataType" xsi:type="string">select</item>
          <item name="editor" xsi:type="array">
          <item name="editorType" xsi:type="string">select</item>
          </item>
          </item>
          </argument>
          </column>



          CMShippingbarUiComponentListingColumnStatus.php




          <?php

          namespace CMShippingbarUiComponentListingColumn;

          class Status implements MagentoFrameworkOptionArrayInterface

          /**
          * Options getter
          *
          * @return array
          */
          public function toOptionArray()

          return [['value' => 1, 'label' => __('Enable')], ['value' => 0, 'label' => __('Disable')]];




          I hope it helps!






          share|improve this answer

























          • Error comes : ( ! ) Fatal error: Uncaught Error: Call to a member function getAvailableStatuses() on null in

            – divya sekar
            2 days ago












          • Have you add getAvailableStatuses() in your model file?

            – Chirag Patel
            2 days ago











          • s i added in my model file

            – divya sekar
            2 days ago











          • can you share your updated code in your question?

            – Chirag Patel
            2 days ago






          • 1





            You can try with this magento.stackexchange.com/questions/217444/… It might work for you.

            – Chirag Patel
            2 days ago













          1












          1








          1








          In shippingbar_post_listing.xml file.




          <column name="status">
          <argument name="data" xsi:type="array">
          <item name="options" xsi:type="object">CMShippingbarUiComponentListingColumnStatus</item><item name="config" xsi:type="array">
          <item name="sortOrder" xsi:type="number">60</item>
          <item name="filter" xsi:type="string">select</item> <item name="label" translate="true" xsi:type="string">Status</item>
          <item name="component" xsi:type="string">Magento_Ui/js/grid/columns/select</item>
          <item name="dataType" xsi:type="string">select</item>
          <item name="editor" xsi:type="array">
          <item name="editorType" xsi:type="string">select</item>
          </item>
          </item>
          </argument>
          </column>



          CMShippingbarUiComponentListingColumnStatus.php




          <?php

          namespace CMShippingbarUiComponentListingColumn;

          class Status implements MagentoFrameworkOptionArrayInterface

          /**
          * Options getter
          *
          * @return array
          */
          public function toOptionArray()

          return [['value' => 1, 'label' => __('Enable')], ['value' => 0, 'label' => __('Disable')]];




          I hope it helps!






          share|improve this answer
















          In shippingbar_post_listing.xml file.




          <column name="status">
          <argument name="data" xsi:type="array">
          <item name="options" xsi:type="object">CMShippingbarUiComponentListingColumnStatus</item><item name="config" xsi:type="array">
          <item name="sortOrder" xsi:type="number">60</item>
          <item name="filter" xsi:type="string">select</item> <item name="label" translate="true" xsi:type="string">Status</item>
          <item name="component" xsi:type="string">Magento_Ui/js/grid/columns/select</item>
          <item name="dataType" xsi:type="string">select</item>
          <item name="editor" xsi:type="array">
          <item name="editorType" xsi:type="string">select</item>
          </item>
          </item>
          </argument>
          </column>



          CMShippingbarUiComponentListingColumnStatus.php




          <?php

          namespace CMShippingbarUiComponentListingColumn;

          class Status implements MagentoFrameworkOptionArrayInterface

          /**
          * Options getter
          *
          * @return array
          */
          public function toOptionArray()

          return [['value' => 1, 'label' => __('Enable')], ['value' => 0, 'label' => __('Disable')]];




          I hope it helps!







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 2 days ago

























          answered 2 days ago









          Chirag PatelChirag Patel

          2,468423




          2,468423












          • Error comes : ( ! ) Fatal error: Uncaught Error: Call to a member function getAvailableStatuses() on null in

            – divya sekar
            2 days ago












          • Have you add getAvailableStatuses() in your model file?

            – Chirag Patel
            2 days ago











          • s i added in my model file

            – divya sekar
            2 days ago











          • can you share your updated code in your question?

            – Chirag Patel
            2 days ago






          • 1





            You can try with this magento.stackexchange.com/questions/217444/… It might work for you.

            – Chirag Patel
            2 days ago

















          • Error comes : ( ! ) Fatal error: Uncaught Error: Call to a member function getAvailableStatuses() on null in

            – divya sekar
            2 days ago












          • Have you add getAvailableStatuses() in your model file?

            – Chirag Patel
            2 days ago











          • s i added in my model file

            – divya sekar
            2 days ago











          • can you share your updated code in your question?

            – Chirag Patel
            2 days ago






          • 1





            You can try with this magento.stackexchange.com/questions/217444/… It might work for you.

            – Chirag Patel
            2 days ago
















          Error comes : ( ! ) Fatal error: Uncaught Error: Call to a member function getAvailableStatuses() on null in

          – divya sekar
          2 days ago






          Error comes : ( ! ) Fatal error: Uncaught Error: Call to a member function getAvailableStatuses() on null in

          – divya sekar
          2 days ago














          Have you add getAvailableStatuses() in your model file?

          – Chirag Patel
          2 days ago





          Have you add getAvailableStatuses() in your model file?

          – Chirag Patel
          2 days ago













          s i added in my model file

          – divya sekar
          2 days ago





          s i added in my model file

          – divya sekar
          2 days ago













          can you share your updated code in your question?

          – Chirag Patel
          2 days ago





          can you share your updated code in your question?

          – Chirag Patel
          2 days ago




          1




          1





          You can try with this magento.stackexchange.com/questions/217444/… It might work for you.

          – Chirag Patel
          2 days ago





          You can try with this magento.stackexchange.com/questions/217444/… It might work for you.

          – Chirag Patel
          2 days ago













          1














          try this way...
          and shippingbar_post_listing.xml in my code replace



          <column name="status">
          <argument name="data" xsi:type="array">
          <item name="options" xsi:type="object">CMShippingbarUiComponentListingColumnStatus</item><item name="config" xsi:type="array">
          <item name="sortOrder" xsi:type="number">60</item>
          <item name="filter" xsi:type="string">select</item> <item name="label" translate="true" xsi:type="string">Status</item>
          <item name="component" xsi:type="string">Magento_Ui/js/grid/columns/select</item>
          <item name="dataType" xsi:type="string">select</item>
          <item name="editor" xsi:type="array">
          <item name="editorType" xsi:type="string">select</item>
          </item>
          </item>
          </argument>
          </column>


          and CMShippingbarUiComponentListingColumnStatus.php code this way..



          <?php

          namespace CMShippingbarUiComponentListingColumn;

          class Status implements MagentoFrameworkOptionArrayInterface

          /**
          * Options getter
          *
          * @return array
          */
          public function toOptionArray()

          return [['value' => 1, 'label' => __('Enable')], ['value' => 0, 'label' => __('Disable')]];







          share|improve this answer

























          • In which file @rakesh

            – divya sekar
            2 days ago











          • its not working rakesh

            – divya sekar
            2 days ago











          • you have my code use and replace it?

            – Rakesh Donga
            2 days ago











          • S I did it, its again show status '0' or '1'

            – divya sekar
            2 days ago











          • prnt.sc/n6dyv9 i used it but it replicate same prnt.sc/n6dzm6

            – divya sekar
            2 days ago
















          1














          try this way...
          and shippingbar_post_listing.xml in my code replace



          <column name="status">
          <argument name="data" xsi:type="array">
          <item name="options" xsi:type="object">CMShippingbarUiComponentListingColumnStatus</item><item name="config" xsi:type="array">
          <item name="sortOrder" xsi:type="number">60</item>
          <item name="filter" xsi:type="string">select</item> <item name="label" translate="true" xsi:type="string">Status</item>
          <item name="component" xsi:type="string">Magento_Ui/js/grid/columns/select</item>
          <item name="dataType" xsi:type="string">select</item>
          <item name="editor" xsi:type="array">
          <item name="editorType" xsi:type="string">select</item>
          </item>
          </item>
          </argument>
          </column>


          and CMShippingbarUiComponentListingColumnStatus.php code this way..



          <?php

          namespace CMShippingbarUiComponentListingColumn;

          class Status implements MagentoFrameworkOptionArrayInterface

          /**
          * Options getter
          *
          * @return array
          */
          public function toOptionArray()

          return [['value' => 1, 'label' => __('Enable')], ['value' => 0, 'label' => __('Disable')]];







          share|improve this answer

























          • In which file @rakesh

            – divya sekar
            2 days ago











          • its not working rakesh

            – divya sekar
            2 days ago











          • you have my code use and replace it?

            – Rakesh Donga
            2 days ago











          • S I did it, its again show status '0' or '1'

            – divya sekar
            2 days ago











          • prnt.sc/n6dyv9 i used it but it replicate same prnt.sc/n6dzm6

            – divya sekar
            2 days ago














          1












          1








          1







          try this way...
          and shippingbar_post_listing.xml in my code replace



          <column name="status">
          <argument name="data" xsi:type="array">
          <item name="options" xsi:type="object">CMShippingbarUiComponentListingColumnStatus</item><item name="config" xsi:type="array">
          <item name="sortOrder" xsi:type="number">60</item>
          <item name="filter" xsi:type="string">select</item> <item name="label" translate="true" xsi:type="string">Status</item>
          <item name="component" xsi:type="string">Magento_Ui/js/grid/columns/select</item>
          <item name="dataType" xsi:type="string">select</item>
          <item name="editor" xsi:type="array">
          <item name="editorType" xsi:type="string">select</item>
          </item>
          </item>
          </argument>
          </column>


          and CMShippingbarUiComponentListingColumnStatus.php code this way..



          <?php

          namespace CMShippingbarUiComponentListingColumn;

          class Status implements MagentoFrameworkOptionArrayInterface

          /**
          * Options getter
          *
          * @return array
          */
          public function toOptionArray()

          return [['value' => 1, 'label' => __('Enable')], ['value' => 0, 'label' => __('Disable')]];







          share|improve this answer















          try this way...
          and shippingbar_post_listing.xml in my code replace



          <column name="status">
          <argument name="data" xsi:type="array">
          <item name="options" xsi:type="object">CMShippingbarUiComponentListingColumnStatus</item><item name="config" xsi:type="array">
          <item name="sortOrder" xsi:type="number">60</item>
          <item name="filter" xsi:type="string">select</item> <item name="label" translate="true" xsi:type="string">Status</item>
          <item name="component" xsi:type="string">Magento_Ui/js/grid/columns/select</item>
          <item name="dataType" xsi:type="string">select</item>
          <item name="editor" xsi:type="array">
          <item name="editorType" xsi:type="string">select</item>
          </item>
          </item>
          </argument>
          </column>


          and CMShippingbarUiComponentListingColumnStatus.php code this way..



          <?php

          namespace CMShippingbarUiComponentListingColumn;

          class Status implements MagentoFrameworkOptionArrayInterface

          /**
          * Options getter
          *
          * @return array
          */
          public function toOptionArray()

          return [['value' => 1, 'label' => __('Enable')], ['value' => 0, 'label' => __('Disable')]];








          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited yesterday









          divya sekar

          35314




          35314










          answered 2 days ago









          Rakesh DongaRakesh Donga

          2,393316




          2,393316












          • In which file @rakesh

            – divya sekar
            2 days ago











          • its not working rakesh

            – divya sekar
            2 days ago











          • you have my code use and replace it?

            – Rakesh Donga
            2 days ago











          • S I did it, its again show status '0' or '1'

            – divya sekar
            2 days ago











          • prnt.sc/n6dyv9 i used it but it replicate same prnt.sc/n6dzm6

            – divya sekar
            2 days ago


















          • In which file @rakesh

            – divya sekar
            2 days ago











          • its not working rakesh

            – divya sekar
            2 days ago











          • you have my code use and replace it?

            – Rakesh Donga
            2 days ago











          • S I did it, its again show status '0' or '1'

            – divya sekar
            2 days ago











          • prnt.sc/n6dyv9 i used it but it replicate same prnt.sc/n6dzm6

            – divya sekar
            2 days ago

















          In which file @rakesh

          – divya sekar
          2 days ago





          In which file @rakesh

          – divya sekar
          2 days ago













          its not working rakesh

          – divya sekar
          2 days ago





          its not working rakesh

          – divya sekar
          2 days ago













          you have my code use and replace it?

          – Rakesh Donga
          2 days ago





          you have my code use and replace it?

          – Rakesh Donga
          2 days ago













          S I did it, its again show status '0' or '1'

          – divya sekar
          2 days ago





          S I did it, its again show status '0' or '1'

          – divya sekar
          2 days ago













          prnt.sc/n6dyv9 i used it but it replicate same prnt.sc/n6dzm6

          – divya sekar
          2 days ago






          prnt.sc/n6dyv9 i used it but it replicate same prnt.sc/n6dzm6

          – divya sekar
          2 days ago


















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Magento Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f268336%2fstatus-not-shown-label-in-admin-grid-in-magento-2%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          getting Checkpoint VPN SSL Network Extender working in the command lineHow to connect to CheckPoint VPN on Ubuntu 18.04LTS?Will the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayVPN SSL Network Extender in FirefoxLinux Checkpoint SNX tool configuration issuesCheck Point - Connect under Linux - snx + OTPSNX VPN Ububuntu 18.XXUsing Checkpoint VPN SSL Network Extender CLI with certificateVPN with network manager (nm-applet) is not workingWill the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayImport VPN config files to NetworkManager from command lineTrouble connecting to VPN using network-manager, while command line worksStart a VPN connection with PPTP protocol on command linestarting a docker service daemon breaks the vpn networkCan't connect to vpn with Network-managerVPN SSL Network Extender in FirefoxUsing Checkpoint VPN SSL Network Extender CLI with certificate

          Cannot Extend partition with GParted The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Community Moderator Election ResultsCan't increase partition size with GParted?GParted doesn't recognize the unallocated space after my current partitionWhat is the best way to add unallocated space located before to Ubuntu 12.04 partition with GParted live?I can't figure out how to extend my Arch home partition into free spaceGparted Linux Mint 18.1 issueTrying to extend but swap partition is showing as Unknown in Gparted, shows proper from fdiskRearrange partitions in gparted to extend a partitionUnable to extend partition even though unallocated space is next to it using GPartedAllocate free space to root partitiongparted: how to merge unallocated space with a partition

          Marilyn Monroe Ny fiainany manokana | Jereo koa | Meny fitetezanafanitarana azy.