/// <summary> /// Gets an instance <see cref="GridControlWrapper"/> for the specified <code>control</code>. /// </summary> /// <param name="control">The control to be wrapped.</param> /// <param name="wrapper">The wrapper.</param> public bool GetControlWrapper(GridControl control, out GridControlWrapper wrapper) { wrapper = null; if (IsLinkPickerEditor(control.Editor)) { wrapper = control.GetControlWrapper<GridControlLinkPickerValue, GridEditorLinkPickerConfig>(); } return wrapper != null; }
/// <summary> /// Gets an instance <code>GridControlWrapper</code> for the specified <code>control</code>. /// </summary> /// <param name="control">The control to be wrapped.</param> /// <param name="wrapper">The wrapper.</param> public bool GetControlWrapper(GridControl control, out GridControlWrapper wrapper) { wrapper = null; switch (control.Editor.Alias) { case "media_wide": case "media_wide_cropped": wrapper = control.GetControlWrapper<GridControlMediaValue, GridEditorMediaConfig>(); break; case "banner_headline": case "banner_tagline": case "headline_centered": case "abstract": case "paragraph": case "quote_D": case "code": wrapper = control.GetControlWrapper<GridControlTextValue, GridEditorTextConfig>(); break; } return wrapper != null; }
/// <summary> /// Gets an instance <code>GridControlWrapper</code> for the specified <code>control</code>. /// </summary> /// <param name="control">The control to be wrapped.</param> /// <param name="wrapper">The wrapper.</param> public virtual bool GetControlWrapper(GridControl control, out GridControlWrapper wrapper) { wrapper = null; switch (control.Editor.Alias) { case "media": wrapper = control.GetControlWrapper<GridControlMediaValue, GridEditorMediaConfig>(); break; case "embed": wrapper = control.GetControlWrapper<GridControlEmbedValue>(); break; case "rte": wrapper = control.GetControlWrapper<GridControlRichTextValue>(); break; case "macro": wrapper = control.GetControlWrapper<GridControlMacroValue>(); break; case "quote": case "headline": wrapper = control.GetControlWrapper<GridControlTextValue, GridEditorTextConfig>(); break; } return wrapper != null; }