jQWidgets Forums

jQuery UI Widgets Forums React groupsrenderer for multiple level access

This topic contains 2 replies, has 2 voices, and was last updated by  Hristo 5 years, 7 months ago.

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

  • ganesh
    Participant

    Hi there,
    I Used groupsrenderer, when having singal level grouping I used data.subitem as a record but when I grouped with multilevel at that time data is not showing. I also referred this https://jsfiddle.net/Dimitar_jQWidgets/khy6hkuy/ but no luck can you please provide a solution for that when having multiple levels grouping
    ` const groupsrenderered = (text, group, expanded, data) => {

    const records = data.subItem;

    let summary = records[records.length – 1];

    let display= “”;
    let TotaltValue = parseFloat(
    summary.Value.replace(“Sum:”, “”)
    ).toLocaleString(“en-US”, {
    minimumFractionDigits: 2,
    maximumFractionDigits: 2
    });

    display+= Total Value: ${TotaltValue };

    return `<div class=”jqx-grid-groups-row jqx-groupby-column” style=”position: absolute;”><span> ${
    data.groupcolumn.text
    } </span><span class=”jqx-grid-groups-row-details”>${group}<span> ${“(” +
    display+
    “)”}</span></span></div>`;
    };`

    Thank you
    Ganesh.


    ganesh
    Participant

    Hi there,
    when I do multilevel grouping at that every time I want to show leaf node details on each group title.

    Thank you
    Ganesh


    Hristo
    Participant

    Hello Ganesh,

    It seems you try to do it on that way.

    But when you make another level of grouping the grid data become more complicated.
    You should work and handle the subGroups” object.
    Please, take a look at this example:
    https://stackblitz.com/edit/react-ts-unr454
    It demonstrates a simple approach on how to use the subGroups” option.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    https://www.jqwidgets.com

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

You must be logged in to reply to this topic.