0

I added a DateColumn component to my backend grid which looks like this

    <column name="booking_from" class="Magento\Ui\Component\Listing\Columns\Date" component="Magento_Ui/js/grid/columns/date">
        <argument name="data" xsi:type="array">
            <item name="config" xsi:type="array">
                <item name="editor" xsi:type="array">
                    <item name="editorType" xsi:type="string">date</item>
                </item>
                <item name="visible" xsi:type="boolean">true</item>
                <item name="filter" xsi:type="string">dateRange</item>
                <item name="dataType" xsi:type="string">date</item>
                <item name="dateFormat" xsi:type="string">MMM dd, YYYY</item>
                <item name="label" xsi:type="string" translate="true">Booking From</item>
                <item name="sortOrder" xsi:type="number">11</item>
            </item>
        </argument>
    </column>

My problem is that when I try to sort the date column that it sorts after the day number and not the date itself. Also the editor config doesn't allow me to edit the date, too.

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.