Wijmo Checkbox selection column not showing up

Posted by: sneha.nagaruru on 4 March 2021, 6:28 pm EST

  • Posted 4 March 2021, 6:28 pm EST - Updated 3 October 2022, 2:19 pm EST

    I have tried to implement https://www.grapecity.com/wijmo/demos/Grid/Selection/CheckboxSelection/angular but the checkbox column is not showing up.

    <label>
        Header Column
        <input #headersCheckbox type="checkbox" [checked]="headers" (change)="setHeaders(headersCheckbox.checked)" />
    </label>
    <wj-flex-grid #flexGrid class="bento-flex-grid" [class.list-grid]="isListGrid" [itemsSource]="data"
        [stickyHeaders]="true" [showMarquee]="true" [showSort]="true" (initialized)="initGrid(flexGrid)"
        [allowSorting]="'MultiColumn'" [alternatingRowStep]="0" [deferResizing]="true">
        <!-- FLEXGRID FILTER -->
        <wj-flex-grid-filter #filter></wj-flex-grid-filter>
        <!-- Actions Column -->
        <wj-flex-grid-column [header]="'Actions'" [binding]="'actions'" [minWidth]="150" [width]="150" [isReadOnly]="true"
            [allowSorting]="false" [allowDragging]="false" [cssClass]="'action-column'">
            <ng-template wjFlexGridCellTemplate [cellType]="'Cell'" let-col="col" let-row="row" let-item="item">
                <span class="bento-icon-edit grid-action-icon" (click)="actions.editRow(item)" ngbTooltip="Edit"
                    container="body" title="Edit"></span>
                <span class="bento-icon-folder grid-action-icon" (click)="actions.editRow(item)" ngbTooltip="Attach"
                    [style.display]="!toggleStatus ? 'inline' : 'none'" container="body" title="Attach"></span>
                <div ngbDropdown [container]="'body'" class="grid-dropdown">
                    <button aria-label="Select more action" class="btn btn-outline-primary btn-xs dropdown-toggle"
                        ngbDropdownToggle (click)="actions.showOptions(item)">
                        More
                        <i aria-hidden="true" class="bento-icon-caret-down-filled"></i>
                    </button>
                    <div ngbDropdownMenu aria-labelledby="dropdownBasic1">
                        <button ngbDropdownItem
                            [ngClass]="option.IsEnabled === true ? 'dropdown-item' : 'disable-dropdown-item'"
                            *ngFor="let option of moreOptions; let i = index;" (click)="onActionSelect(option,row.index)"
                            [hidden]="!option.Visibility">{{option.displayName}}</button>
                    </div>
                </div>
            </ng-template>
        </wj-flex-grid-column>
        <wj-flex-grid-column *ngFor="let col of gridColumns" [header]="col.header" [binding]="col.binding"
            [visible]="col.visible" [width]="col.width" [isReadOnly]="true">
            <ng-template *ngIf="col.binding=='severity_color'" wjFlexGridCellTemplate [cellType]="'Cell'" let-item="item">
                <img src="assets/images/{{item.severity_color.toLowerCase()}}.PNG" alt="{{item.severity_color}}"
                    width="15px" height="15px" />
            </ng-template>
            <ng-template *ngIf="col.binding=='wsu_checklist'" wjFlexGridCellTemplate [cellType]="'Cell'" let-item="item">
                <a href="#!" alt="{{item.wsu_checklist}}">{{item.wsu_checklist}}</a>
            </ng-template>
            <ng-template *ngIf="col.binding=='wsu_followup'" wjFlexGridCellTemplate [cellType]="'Cell'" let-item="item">
                <div *ngIf="item.wsu_followup == 'true'"><span class="bento-icon-flag-filled grid-action-icon"></span>
                </div>
            </ng-template>
        </wj-flex-grid-column>
    </wj-flex-grid>
    

    When the header column is unchecked the row height gets increasing

    Please let me know if I’m missing anything.

  • Posted 5 March 2021, 4:39 am EST

    Hi Sneha,

    Could you please check if there is any error on the console. I tried adding selector and it is working fine on my end. You may refer to the following sample:

    https://codesandbox.io/s/wijmo-angular-forked-dvutf?file=/src/app/app.component.ts

    Regarding the rowheight increase issue, the issue seems something specific to your application, could you please share a sample that demonstrates this issue for us to investigate or you may also update the above-shared sample to replicate the issue.

    Regards

  • Posted 5 March 2021, 5:52 am EST

    Hi Sharad,

    I have updated the same in code and it is still not working. I will share with you the prototype of my project by the end of the day.

    Regards,

    Sneha

  • Posted 5 March 2021, 3:12 pm EST - Updated 3 October 2022, 2:20 pm EST

    Hi Sharad,

    I herewith provide the prototype of the project along with mockup’s for better understanding.

    case URL: https://www.grapecity.com/my-account/my-support/case/f2cfb6d0-e57d-eb11-a812-000d3a8bd0b7

    My requirement is on togglebutton click (Multi-select) I need to show and hide the checkbox column with grouped data in the wijmogrid.

    Also, an alert should be shown if on another button click like in the toolbar when a different group of data is selected.

    Regards,

    Sneha

  • Posted 5 March 2021, 3:15 pm EST

    P.S. please check package.json file if any wijmo package need to added.

  • Posted 8 March 2021, 4:13 am EST

    Hi Sneha,

    Thank you for the sample. We have responded on the support portal. Please refer to the same.

    Regards

Need extra support?

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

Learn More

Forum Channels