0

Is it possible to have the column display name change depending on which view is shown? When I change the display name of the column it applies to all views.

The main reason for doing this is some views need to have more columns than others, and I need to use abbreviations to shrink the column width. However, these views mostly apply to "super users" and regular views will benefit from having the non-abbreviated column name.

2

Sure, you can use CSR via JSLink to customize the display names of your columns on a per-view basis.

Here are some MSDN CSR code samples to get you started: https://code.msdn.microsoft.com/office/Client-side-rendering-JS-2ed3538a

EDIT: Similar thread: Modify list view column titles in a view without changing the list columns

|improve this answer|||||
  • Thank you - this is exactly what I was looking for. I particularly found this sub-link useful: codeproject.com/Articles/620110/… Do you have any recommendations on best practices for deploying/debugging CSR? I find using a script editor web part to be a bit ineffective. – Michael Oct 7 '17 at 0:22
  • 1
    Hi Michael, sorry for the late reply, but you can always create the JS file and then drop it into Site Assets, and reference it on the page via the JS link attribute of your list view web part. So, when you are editing the page that contains your list view, just go to the bottom of the web part property pane, and then add your reference. – spguy Oct 10 '17 at 21:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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