jQuery UI Widgets Forums Angular Angular 7 – JqxGrid – Grouping

This topic contains 2 replies, has 2 voices, and was last updated by  Todor 4 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Angular 7 – JqxGrid – Grouping #106164

    John361
    Participant

    Hello,

    I actually have this final structure in JQuery :

    JqxGrid Jquery

    I want to have the same using Angular. I can have rows but I can not have groups.

    components.ts

    source = {
        localdata: null,
        datatype: "array",
        datafields: [
              { name: 'theme', type: 'string' },
              { name: 'critere', type: 'string' },
              { name: 'note', type: 'float' }
        ],
        // root: "theme",
        // record: "theme",
        // id: 'theme'
    };
    gridSettings: jqwidgets.GridOptions = {
        width: '100%',
        source: this.dataAdapter,
        autoheight: true,
        columns: [
            { text: 'Critère', datafield: 'critere', width: '80%' },
            { text: 'Note', datafield: 'note', align: 'right', cellsalign: 'right', width: '20%' },
        ]
    };

    In subscription I have :

    this.source.localdata = e;
     this.myGrid.updatebounddata();
     this.myGrid.addgroup('theme'); // during test but seems not work
    

    component.html
    <jqxGrid #gridReference [auto-create]='false' [groupable]="true" [showgroupsheader]="false"></jqxGrid>

    Can anyone helps me please ?

    • This topic was modified 4 months ago by  John361.
    Angular 7 – JqxGrid – Grouping #106166

    John361
    Participant

    Link to exceptation (actually in jquery) : https://github.com/John361/angular_jqxgrid/blob/master/capture.png

    Angular 7 – JqxGrid – Grouping #106169

    Todor
    Participant

    Hello John361,

    Please review the following example whether it fits your needs.

    Let us know if you need further assistance.

    Best Regards,
    Todor

    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.