#Group table with expendable
20 messages · Page 1 of 1 (latest)
What's exactly your request?
what im doing wrong here
Please provide a Stackblitz reproduction of your issue, explaining what doesn't satisfy your expectations
https://bolt.new/~/stackblitz-starters-bzpqgusx
Here is the code
The problem is this, in the preview you will see empty rows, that empty rowes are bcs of the groups in the dataSoruce, but the row that needs to render groups are not showing, and when i clikc on a row it should expand, but it doesn't work, so would you be able to point me in the right direction, where did i make a mistake exaclty? I have provide the desing img
so you can see how it should be, I believe this part of the code is ignored:
<!-- Group Header Column - Spans all columns and displays only text -->
<ng-container matColumnDef="groupHeader">
<th mat-header-cell *matHeaderCellDef></th> <!-- required -->
<td colspan="999" mat-cell *matCellDef="let groupBy" class="group-header-cell">
<strong>{{ groupBy.initial }}</strong>
</td>
</ng-container>
<!-- Group Header Row -->
<tr
mat-row
*matRowDef="let row; columns: ['groupHeader']; when: isGroup"
class="group-header-row">
</tr>
How to fork?
Try: https://bolt.new/~/stackblitz-starters-bzpqgusx
it expands now
yes, but the groupHeader is ignored for some reason
Ik removing "when" is doing this, but the problem is still there, 2 empty rows should not be there
I mean i share the design, and i have tried many things but nothing works so far, 1st issue resolve, then now this empty rows. I'm start thinking maybe its not possible to combine mulirowdata with the groups, maybe material table is not extesible that much
No more empty row now. Just describe same way you want writing ai prompt. I can understand the design but with stackblitz is easier for me
Thanks, but there is still one epty row under the group lable, but you already dome too much so you don't need to spend more time on this, i hoipe i will find the solution.
bdw i did try with the ai, putting images trying a couple of propts for the last 2 days, but thing works