Posted 22 September 2022, 5:37 pm EST
I am using a wijmo 5 grid with angular 11. my grid is like that-
<wj-flex-grid id=“dealfunding” #flexdealfunding [itemsSource]=“cvDealFundingList” [allowAddNew]=“true” [allowSorting]=“false”>
<wj-flex-grid-column [header]=“‘Confirmed’” [binding]=“‘Applied’” [width]=“95”>
<ng-template wjFlexGridCellTemplate [cellType]=“‘Cell’” let-cell=“cell”>
<input #fundingappiedchk type=“checkbox” checked]=“cell.item.Applied”
(change)=“ChangeFundingappied(cell.item.DealFundingID,fundingappiedchk.checked,cell.row)” id=“fundingappiedchk”/>
here cvDealFundingList is a CollectionView i am having as grid source.My problem is when i check the checkbox i am having some validation,if that fails i dont want that checkbox to be cheked,instaed it should be unchecked again,i have written code in typescript on file inside a methode 'ChangeFundingappied ’ to uncheck it ,but it doesnt.my code is below.
ChangeFundingappied(dealFundingID: string, _value: boolean, flexGridrw: wjcGrid.Row): void {
//this is my aler box,after this i want to uncheck the checkbox again which i have checked.
this.CustomAlert(“You cannot wire confirm the draw as the workflow status is not completed.”);
this.flexdealfunding.rows[flexGridrw.index].dataItem.Applied = false;
this.flexdealfunding.invalidate();
}
could you please let me know the workaround for this?