GroupHeader issue

Posted by: sicrum on 9 September 2018, 9:18 pm EST

  • Posted 9 September 2018, 9:18 pm EST

    Hello

    We’ve been using old version of Wijmo and updated it recently.

    After upgrade we are having a problem with this code:

     
                   <wj-flex-grid-column [header]="' '" [binding]="'GroupId'" *ngIf="this.groupByColumns.length > 0" [width]="3">
                        <template wjFlexGridCellTemplate [cellType]="'GroupHeader'" let-cell="cell">
                            <div (click)="cell.row.isCollapsed = !cell.row.isCollapsed">
                                <span wj-collapse="" [class.wj-glyph-down-right]="!cell.row.isCollapsed" [class.wj-glyph-right]="cell.row.isCollapsed"></span>
                                <b>{{cell.item.name}}</b>
                            </div>
                        </template>
                    </wj-flex-grid-column>
    
    

    Exception is:

    Subscriber.js:227 Uncaught ** Assertion failed in Wijmo: Invalid enum value.

    I’ve checked documentation:

    https://demos.wijmo.com/5/Angular/WijmoHelp/WijmoHelp/topic/wijmo.grid.CellType.Enum.html

    Looks like GroupHeader is not supported anymore.

    How can we fix it?

    Thanks

  • Posted 10 September 2018, 3:59 am EST

    Question can be removed. Fix was not related to cellType

  • Posted 10 September 2018, 3:31 pm EST

    Hi,

    We are glad to hear that you were able to solve your problem. And yes, as you have mentioned, cell templates still support GroupHeader.

    ~Sharad

Need extra support?

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

Learn More

Forum Channels