Hello,
I actually have this final structure in 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 ?