I am able to add checkbox in my row group header in my data table.
When I click the checkbox in row group header all the checks for that row group must be checked. I am trying this but getting error. ERROR TypeError: Cannot read property 'concat' of undefined. Please help me.
<p-dataTable [value]="apprestrictions" selectionMode="multiple" [(selection)]="selectedApprestrictions" sortField="belongsTo" rowGroupMode="subheader" groupField="belongsTo" expandableRowGroups="false" [responsive]="true" [loading]="loading">
<!--<p-header>Subheader</p-header>-->
<ng-template pTemplate="rowgroupheader" let-rowData>
{{rowData['belongsTo']}}
<p-checkbox name="groupname" (onChange)="onaccountselected(checked)"></p-checkbox>
</ng-template>
<p-column selectionMode="multiple" header="Select"></p-column>
<p-column field="id" header="ID"></p-column>
<p-column field="name" header="Name"></p-column>
<p-column field="displayBelongsTo" header="Belongs To" [sortable]="true"></p-column>
</p-dataTable>
Data Table - Check box in Row Group Header
Forum rules
Please note that response time for technical support is within 3-5 business days.
Please note that response time for technical support is within 3-5 business days.
Hi,
We will review this and get back to you.
We will review this and get back to you.
-
- Posts: 18
- Joined: 19 Apr 2017, 23:28
Thank you very much. I will be waiting for some help.
We discussed this and it is not supported actually.
-
- Posts: 18
- Joined: 19 Apr 2017, 23:28
I solved the issue. I simply added items to my array property which I binded to selection property in my datatable. Thats all.
-
- Posts: 18
- Joined: 19 Apr 2017, 23:28
I am having another issue. In my Row group header when I use p-checkbox I am getting an error message when I click on check box so I replaced that with input type=checkbox.
Can you please let me know how I can sync the checkboxes on row group headers with data table header checkbox( which is used to select all rows )
Can you please let me know how I can sync the checkboxes on row group headers with data table header checkbox( which is used to select all rows )
Hi,
This issue is not related to the layout itself if you create a new topic to;
viewforum.php?f=35
It can be more helpfull.
Regards
This issue is not related to the layout itself if you create a new topic to;
viewforum.php?f=35
It can be more helpfull.
Regards
-
- Information
-
Who is online
Users browsing this forum: No registered users and 2 guests