How to set default value when value is empty or null

Posted by: sagarteja31 on 27 August 2021, 4:13 am EST

  • Posted 27 August 2021, 4:13 am EST

    Hi,

    here I’ve requirement like when value is empty or null, I want handle that like set a default value-” to that column. can you help on this…

    <wj-flex-grid-column
                *ngFor="let val of usercolumnDefinitionsI"
                [binding]="val.binding"
                [header]="val.header"
                [width]="val.width"            
              >
              </wj-flex-grid-column>
    
  • Posted 31 August 2021, 6:58 am EST

    Hi,

    You can use the formatItem event to add a ‘-’ symbol to empty cells.

    https://stackblitz.com/edit/angular-9-0-0-rc-1-t4tbmn

    Regards,

    Ashwin

Need extra support?

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

Learn More

Forum Channels