Unable to delete C1-Input-Date value

Posted by: cnickerson on 6 September 2024, 11:49 am EST

  • Posted 6 September 2024, 11:49 am EST

    Hello,

    On my C1-Flex-Grid, I have the following column:

    <c1-flex-grid-column binding="ApprovedDate" format="dd-MMM-yyyy" header="Approved">
        <c1-flex-grid-cell-template is-editing="true">
            <c1-input-date id="ApprovedDateEditor" format="dd-MMM-yyyy"
                           template-bindings="@(new {Value="ApprovedDate"})"
                           is-required="false">
            </c1-input-date>
        </c1-flex-grid-cell-template>
    </c1-flex-grid-column>

    Even though I have is-required set to false, I still cannot seem to delete the contents of the date field. Is there a specific property I need to set on the c1-input-date to allow it be deleted? I noticed that in the demo for Custom Editors, the dates also do not delete, so maybe it is just not possible to?

    Thanks!

  • Posted 9 September 2024, 3:07 am EST

    Hi Chris,

    Please make sure to also set isRequired=‘false’ for the column also. Sample Code:

    <c1-flex-grid-column binding="ApprovedDate" format="dd-MMM-yyyy" header="Approved" is-required="false">
        <c1-flex-grid-cell-template is-editing="true">
            <c1-input-date id="ApprovedDateEditor" format="dd-MMM-yyyy"
                           template-bindings="@(new {Value="ApprovedDate"})"
                           is-required="false">
            </c1-input-date>
        </c1-flex-grid-cell-template>
    </c1-flex-grid-column>
    
    

    I hope it helps!

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels