2

When using the jQuery approach to set a custom grouping header message (EDIT: recommended by the KENDO UI support staff on these forums in the past), e.g.

    $(".k-grouping-header").html("my custom grouping message");

the custom message reverts to the standard message if a user drags a column-header to the group header and then clicks the (X) to remove the grouping.

Is there a way to set this custom message as part of the grid's configuration so it will survive the group/degroup operation?

To be clear, I have a custom message in mind, as distinct from a localized message; for example, "Drag the [department] column-header here to group by department" if department is the only column on the grid that is set to be groupable. The message would vary from grid to grid.

1 Answer 1

5

According to the documentation you could use.

groupable: {
    messages: {
        empty: "Custom message text"
    }
}

The documentation has gotten rather good latelly.

4
  • 1
    How do you set groupable to true and include the message?
    – Tim
    Dec 23, 2012 at 3:29
  • 1
    Apparently, when the custom message is set, it is not necessary to set groupable: true. The presence of the messages object suffices.
    – Tim
    Dec 23, 2012 at 13:56
  • Any ideas on how to set the grouped headers messages themselves so they're not prefixed? ie, instead of displaying category: Beverages just say Beverages? The documentation on groupable.messages is blank. docs.telerik.com/kendo-ui/api/javascript/ui/…
    – Plummer
    May 9, 2016 at 14:58
  • for persian message ://groupable: true, groupable: { messages: { empty: "برای گروه بندی بر اساس ستون روی عنوان ستون مربوطه کلیک کرده و به اینجا بکشید" } }, //noRecords: true, noRecords: { template: "هیچ رکوردی موجود نیست" }, May 2, 2017 at 6:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.