RROR TypeError: Cannot read properties of null (reading 'directive')

Posted by: bemes9226 on 20 September 2021, 2:25 pm EST

  • Posted 20 September 2021, 2:25 pm EST

    when i adding column like this am getting error

    <wj-flex-grid-column [header]=“‘Locations’” [binding]=“‘LocationNames’” [width]=“250” [allowResizing]=“false”

    [visible]=“columnDefinitionsByBinding[‘LocationNames’].visible”>

    <ng-template wjFlexGridCellTemplate [cellType]=“‘Cell’” let-cell=“cell”>

    {{cell.item.LocationNames}}

    <span style=“float: right;” (click)=“openLocationsModal()”>

    [img]https://gccontent.blob.core.windows.net/forum-uploads/file-5bfa511f-4d99-44df-b325-359cbba9b37a.PNG[/img]
  • Posted 21 September 2021, 12:55 am EST

    Hello,

    Sorry, but we are unable to replicate the issue at our end. However, the issue seemed to be related to the “columnDefinitionsByBinding” you have passed to the visible property, make sure that you are getting the correct boolean value.

    Also, Could you please provide a sample replicating the issue or you could update the sample link below :

    sample link:https://stackblitz.com/edit/angular-xwpcmx?file=src%2Fapp%2Fapp.component.html

    The sample link above shows the approach I have used to replicate your issue, let me know if it is different in your approach.

    Regards

Need extra support?

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

Learn More

Forum Channels