If I custom render my groups on list views with JSLink, I (of course) overwrite the SharePoint standard code, including the javascript for expanding.
function myGrouping(ctx, group, groupId, listItem, listSchema, level, expand) {
var html = listItem[group] + '<br/>';
return html;
}
I already tried to copy the default SP js into my code but it won't work. Is there a simple way to expand the group and load the items into the ctx object?