jQWidgets Forums

jQuery UI Widgets Forums Grid My Grid Grouping is ungrouping after load

Tagged: 

This topic contains 1 reply, has 1 voice, and was last updated by  xixo 8 years, 11 months ago.

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

  • xixo
    Participant

    Hello.

    I’ve a grid working fine, with a Database datasource, several columns, etc.

    I’ve put a simple grouping on grid load, on one column. The problem is, while the the data is loading, the group column appears on the groupheader, but as soon as all the data is loaded, the groupheader is empty and the column appears on the data layout.

    My code:

    $("#jqxgridanl").jqxGrid({
            source: dataAdaptersourceanl,
            theme: 'Metro',
            height: 600,
            width: '100%',
            sortable: true,
            columnsresize: true,
            showaggregates: true,
            showstatusbar: true,
            statusbarheight: 25,
            altrows: true,
            showtoolbar: true,
            columns: [
                        { text: 'NPar', dataField: 'npar', width: 150, groupable: false, hidden: true },
                        { text: 'Partner', dataField: 'partner', width: 150, groupable: true },
                        {
                            text: 'Sales'+lastyear, dataField: 'lyytd', width: 120, align: 'right', cellsalign: 'right', cellsformat: 'c2', groupable: false
                            , aggregates: [{
                                '':
                                 function (aggregatedValue, currentValue, column, record) {
                                     return aggregatedValue + currentValue;
                                 }
                            }]
                        },
                        {
                            text: 'Sales'+year, dataField: 'ytd', width: 120, align: 'right', cellsalign: 'right', cellsformat: 'c2', groupable: false
                            , aggregates: [{
                                '':
                                 function (aggregatedValue, currentValue, column, record) {
                                     return aggregatedValue + currentValue;
                                 }
                            }]
                        }
            ],
            groupable: true,
            groups: ['partner']
        });

    Any ideas…
    Thanks.


    xixo
    Participant

    Please close this question.

    Just made it working.

    I had $("#jqxgridanl").jqxGrid('updatebounddata');
    Passed to $("#jqxgridanl").jqxGrid('updatebounddata', 'cells');

    Thanks.

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

You must be logged in to reply to this topic.