Question

I am working on a requirement that requires me to disable one field from editing (even in the quick edit mode). I just want user to add new record and update existing records (except one field).

I am able to achieve something and remove the fields from quick edit, however i see that on focus of the cell, quick edit adds a new control (drop down), has anyone figured out a way to disable that?

Any suggestions...

enter image description here

Was it helpful?

Solution

You could try using AllowGridEditing with JS Link like this (example with Title):

var fieldContext = {
  Templates: {
    Fields: {
      LinkTitle: {
        View: function(ctx, b) {
          b.AllowGridEditing = false;
          return ctx.CurrentItem.Title;
        }        
      }
    }
  }
};
SPClientTemplates.TemplateManager.RegisterTemplateOverrides(fieldContext); 

OTHER TIPS

You can use approach used in below blog

http://sharepointbitsandbytes.com/2014/01/sharepoint-2013-quick-edit-javascript-validation/

I was exploring it for composite validation purpose. Not working for me. But while implementing same functionality was achieved at cell level for which ever column you want to implement.

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top