jQWidgets Forums

jQuery UI Widgets Forums Grid Grouping

This topic contains 2 replies, has 2 voices, and was last updated by  simcon94 10 years, 11 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Grouping Posts
  • Grouping #57348

    simcon94
    Participant

    Hi,
    i have a grid with grouping.
    So when i group this cell:

    
    , { text: '@Resources.Name', columntype: 'combobox', displayfield: "SpecialName", datafield: "SpecialId", filtertype: 'checkedlist', width: '8%',
                            initeditor: function (row, cellvalue, editor) {
                                editor.jqxComboBox({ source: dataAdapterTypes, displayMember: 'Name', valueMember: 'Id', placeHolder: "Bitte wählen", height: '25', searchMode: 'containsignorecase', autoComplete: true });
                            },
                            // update the editor's value before saving it.
                            cellvaluechanging: function (row, column, columntype, oldvalue, newvalue) {
                                // return the old value, if the new value is empty.
                                if (newvalue == "") return oldvalue;
                            }
                        }
    

    it appears the “SpecialName” as text in Grouping.
    But i will have the “@Resources.Name” as text.
    How can i do this?

    Grouping #57376

    Peter Stoev
    Keymaster

    Hi simcon94,

    To customize the rendering of a group, look at: http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/groupsrenderer.htm?arctic

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com/

    Grouping #57378

    simcon94
    Participant

    No this doesn’t work.
    In groupsrenderer
    `
    var groupsrenderer = function (text, group, expanded, data) {
    console.log(text);
    console.log(group);
    console.log(expanded);
    console.log(data);
    }
    data.groupcolumn is null.
    When i delete the displayField in column, then i have the data.groupcolumn…..
    To change the text, i think it must be in data.groupcolumn.text…..

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

You must be logged in to reply to this topic.