rowEditEnded is called when clicking on calendar icon.

Posted by: me.ritesh.kumar on 1 May 2022, 7:58 pm EST

  • Posted 1 May 2022, 7:58 pm EST

    I am using Wijmo Library 5 flex grid. The grid has column with custom template to edit date like below (I am using inline editing).

    <wj-flex-grid-column [header]="'DATE'" [binding]="'date'" [align]="'left'" [isReadOnly]="true" [width]="'1.2*'" [isRequired]="true">
    <ng-template wjFlexGridCellTemplate [cellType]="'Cell'" let-cell="cell" let-item="item">
    <input
    class="form-control bento-datepicker date-picker-curencydate"
    ngbDatepicker
    #datePickerInput="ngbDatepicker"
    id="datepicker-dropdown-input"
    name="dp"
    [ngModel]="cell.item.date | customDate"
    (ngModelChange)="cell.item.date = ngbDateToJsDate($event)"
    [autoClose]="true"
    [container]="'body'"
    placement="bottom-right"
    [maxDate]="{year: currentDate.getFullYear(), month: currentDate.getMonth() + 1, day: currentDate.getDate() }"
    [readonly]="true"
    />
    <button
    class="btn btn-outline-primary btn-icon ml-2"
    [bentoDatepickerToggle]="datePickerInput"
    type="button"
    [disabled]="!isRowInEditMode">
    <i class="bento-icon-calendar" aria-hidden="true"></i>
    </button>
    </ng-template>
    </wj-flex-grid-column>


    Issue is as soon as I click on the calendar icon, rowEditEnded event is getting called, and not giving me a chance to edit other fields. Ideally I would have liked it to wait for me to click outside the edited row to fire the rowEditEnded event.

    Can someone please help me identifying what I might be missing? Thanks in advance.

    P.S. If I don't include above column, it is working as expected, waiting for me to click outside the row to fire the rowEditEnded event.
  • Replied 1 May 2022, 11:01 pm EST

    ping!!!
  • Replied 3 May 2022, 6:21 pm EST

    Hello,

    We apologize but we are unable to replicate the issue at our end, could you please share a small sample replicating the issue so that we can investigate the issue further at our end then we can assist you accordingly.

    Regards

Need extra support?

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

Learn More

Forum Channels