I've followed some instructions to create a JavaScript file that renders the Title column of a document library as a link to the file in order to obscure the less user friendly name column.
(function () {
var overrideCtx = {};
overrideCtx.Templates = {};
overrideCtx.Templates.Fields = {
'LinkedToTitle': { 'View': '<a class="ms-listlink ms-draggable" href="<#= ctx.CurrentItem.FileRef #>" > <#= ctx.CurrentItem.Title #></a>' }
};
SPClientTemplates.TemplateManager.RegisterTemplateOverrides(overrideCtx);
})();
Everything works well until I configure grouping in the view. When I expand a group, the column is simply left blank (but I can refresh the page and get the links back).
I get the same results no matter where I apply the JSLink: to the XML Field definition, editing the web part, or editing the aspx file of the view.
Using server side rendering works, however I lose the View Selector links at the top of the page.
Is there a way to have my links show up and keep my view selectors? Preferably with CSR and not XSL.