Пример #1
0
        private void RemoveFromDefaultGridAllowedEditors()
        {
            var defaultGridDataType = _dataTypeService.GetDataTypeDefinitionByName(CoreInstallationConstants.DataTypeNames.DefaultGrid);
            var preValuesDictionary = _dataTypeService.GetPreValuesCollectionByDataTypeId(defaultGridDataType.Id).PreValuesAsDictionary;

            GridInstallationHelper.RemoveAllowedEditorForOneColumnRow(preValuesDictionary, UserListAlias);

            _dataTypeService.SaveDataTypeAndPreValues(defaultGridDataType, preValuesDictionary);
        }
Пример #2
0
        private void RemoveFromContentGridAllowedEditors()
        {
            var contentGridDataType = _dataTypeService.GetDataTypeDefinitionByName(CoreInstallationConstants.DataTypeNames.ContentGrid);
            var preValuesDictionary = _dataTypeService.GetPreValuesCollectionByDataTypeId(contentGridDataType.Id).PreValuesAsDictionary;

            GridInstallationHelper.RemoveAllowedEditorForOneColumnRow(preValuesDictionary, TableEditor);
            GridInstallationHelper.RemoveAllowedEditorForTwoColumnRow(preValuesDictionary, TableEditor);

            _dataTypeService.SaveDataTypeAndPreValues(contentGridDataType, preValuesDictionary);
        }