Показать сообщение отдельно
Старый 04.07.2014, 08:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,644 / 848 (80) +++++++
Регистрация: 28.10.2006
mscrmblog: Setting the List in ReadOnly mode to disable most buttons on the ribbon
Источник: http://mscrmblog.net/2014/07/04/sett...on-the-ribbon/
==============

Another requirement from the customer is at the Archive Centre no one should be able to upload/delete any documents through the UI.

There is a property that can be set on the list to disable the Ribbon bar and commands.

public override void FeatureActivated(SPFeatureReceiverProperties properties) { var web = properties.Feature.Parent as SPWeb; web.AllowUnsafeUpdates = true; var documentList = web.Lists["Archived Documents"]; documentList.ReadOnlyUI = true; documentList.Update(); web.Update(); }



Источник: http://mscrmblog.net/2014/07/04/sett...on-the-ribbon/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.