jQWidgets Forums

jQuery UI Widgets Forums Grid expandallgroups and collapseallgroups don't work when groupsrenderer is set

This topic contains 1 reply, has 1 voice, and was last updated by  dzatorsky 6 years, 3 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • dzatorsky
    Participant

    expandallgroups and collapseallgroups methods on grid element just don’t do anything when groupsrenderer is set. Used in Angular app. Example declaration:

    <jqxGrid #ordersGrid
          [theme]="'light'"
          [width]="'100%'"
          [height]="'900'"
          [altrows]="true"
          [columnsautoresize]="true"
          [source]="dataAdapter"
          [columns]="columns"
          [groupable]="true"
          [selectionmode]="'singlerow'"
          [groups]="defaultGroups" 
          [columnsresize]="true"
          [groupsrenderer]="groupsRenderer"
          (onGroupschanged)="onGroupsChanges($event)">
     </jqxGrid>

    In the groupsrenderer I return something like this:

    return <div class="jqx-grid-groups-row jqx-grid-groups-row-light" style="position: absolute;">
                <span class="jqx-grid-groups-row-details jqx-grid-groups-row-details-light">${text}</span>
             </div>;

    dzatorsky
    Participant

    Hmm, alright – it looks like it’s working, but I need to collapse all first, and then expand all. BTW one more detail:

    defaultGroups = ['address', 'floor', 'fullName'];

    So far I can live with the workaround, so I guess the ticket can be closed.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.