protected override object CreateControlsCore() { _fileManager = new ASPxFileManager(); _fileManager.ID = "IConSelector" + this.Model.Id; _fileManager.Width = Unit.Percentage(100); _fileManager.Settings.RootFolder = "/Icons"; _fileManager.Settings.ThumbnailFolder = "/IconsThumbnai"; _fileManager.Settings.AllowedFileExtensions = new string[] { ".jpg", ".jpeg", ".bmp", ".gif", ".png" }; _fileManager.SettingsUpload.AutoStartUpload = true; _fileManager.SettingsUpload.UseAdvancedUploadMode = true; _fileManager.SettingsUpload.AdvancedModeSettings.EnableMultiSelect = true; _fileManager.SettingsEditing.AllowCreate = true; _fileManager.SettingsEditing.AllowDelete = true; _fileManager.SettingsEditing.AllowRename = true; _fileManager.Settings.EnableMultiSelect = true; _fileManager.SettingsBreadcrumbs.ShowParentFolderButton = true; _fileManager.SettingsBreadcrumbs.Visible = true; _fileManager.SettingsBreadcrumbs.Position = BreadcrumbsPosition.Top;//fileManager.CustomFileSystemProvider = new CategoryDataProvider("", _collectionSource, this.Model); _fileManager.Height = 600; //_fileManager.SelectedFileOpened += fileManager_SelectedFileOpened; _fileManager.FileUploading += fileManager_FileUploading; _fileManager.OnClick += _fileManager_OnClick; _fileManager.ItemDeleting += _fileManager_ItemDeleting; _fileManager.CustomCallback += _fileManager_CustomCallback; return(_fileManager); }
public override void Dispose() { if (_fileManager != null) { FocusedObject = null; _fileManager.FileUploading -= fileManager_FileUploading; _fileManager = null; } base.Dispose(); }