New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

Represents the Telerik SmartPaste button control that enables smart pasting functionality for Telerik controls and native HTML elements.

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
[TelerikToolboxCategory("Navigation")]
[ToolboxBitmap(typeof(RadSmartPasteButton), "Toolbox.Icons.SmartPasteButton.png")]
[RequiredScript(typeof(jQueryPlugins))]
[RequiredScript(typeof(KendoSmartPasteButton))]
[ClientScriptResource("Telerik.Web.UI.RadSmartPasteButton", "Telerik.Web.UI.SmartPasteButton.Scripts.RadSmartPasteButton.kendo.js", LoadOrder = 2)]
[ClientScriptResource("Telerik.Web.UI.RadSmartPasteButton", "Telerik.Web.UI.SmartPasteButton.Scripts.RadSmartPasteButton.js", LoadOrder = 3)]
[EmbeddedSkin("SmartPasteButton", typeof(RadSmartPasteButton))]
[EmbeddedSkin("SmartPasteButton", "Default", typeof(RadSmartPasteButton))]
[RequiredCss("Telerik.Web.UI.Skins.Common.fonticons.css", RenderMode.Classic, typeof(RadSmartPasteButton))]
[RequiredCss("Telerik.Web.UI.Skins.Common.MaterialRipple.css", RenderMode.Classic, typeof(RadSmartPasteButton))]
public class RadSmartPasteButton : RadWebControl, IComponent, IDisposable, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor, IAttributeAccessor, IScriptControl, IPostBackDataHandler, ISkinnableControl, IControl, IControlResolver

Inheritance: objectControlWebControlRadWebControlRadSmartPasteButton

Implements: IAttributeAccessorIComponentIControlIControlBuilderAccessorIControlDesignerAccessorIControlResolverIDataBindingsAccessorIDisposableIExpressionsAccessorIParserAccessorIPostBackDataHandlerIScriptControlISkinnableControlIUrlResolutionService...

Inherited Members WebControl.AddAttributesToRender(HtmlTextWriter)WebControl.ApplyStyle(Style)WebControl.CopyBaseAttributes(WebControl)WebControl.CreateControlStyle()WebControl.LoadViewState(object)WebControl.TrackViewState()WebControl.MergeStyle(Style)WebControl.Render(HtmlTextWriter)WebControl.RenderBeginTag(HtmlTextWriter)WebControl.RenderEndTag(HtmlTextWriter)WebControl.RenderContents(HtmlTextWriter)WebControl.SaveViewState()WebControl.AccessKeyWebControl.AttributesWebControl.BackColorWebControl.BorderColorWebControl.BorderWidthWebControl.BorderStyleWebControl.ControlStyleWebControl.ControlStyleCreatedWebControl.CssClassWebControl.DisabledCssClassWebControl.StyleWebControl.EnabledWebControl.EnableThemingWebControl.FontWebControl.ForeColorWebControl.HasAttributesWebControl.HeightWebControl.IsEnabledWebControl.SupportsDisabledAttributeWebControl.SkinIDWebControl.TabIndexWebControl.TagKeyWebControl.TagNameWebControl.ToolTipWebControl.WidthControl.ResolveAdapter()Control.HasEvents()Control.GetRouteUrl(object)Control.GetRouteUrl(string, object)Control.GetRouteUrl(RouteValueDictionary)Control.GetRouteUrl(string, RouteValueDictionary)Control.GetUniqueIDRelativeTo(Control)Control.ApplyStyleSheetSkin(Page)Control.OnDataBinding(EventArgs)Control.DataBind()Control.DataBind(bool)Control.DataBindChildren()Control.AddParsedSubObject(object)Control.EnsureID()Control.OnInit(EventArgs)Control.ClearChildState()Control.ClearChildControlState()Control.ClearChildViewState()Control.ClearEffectiveClientIDMode()Control.ClearCachedClientID()Control.Focus()Control.LoadControlState(object)Control.MapPathSecure(string)Control.OpenFile(string)Control.OnLoad(EventArgs)Control.OnPreRender(EventArgs)Control.BuildProfileTree(string, bool)Control.SaveControlState()Control.RenderChildren(HtmlTextWriter)Control.RenderControl(HtmlTextWriter)Control.RenderControl(HtmlTextWriter, ControlAdapter)Control.OnUnload(EventArgs)Control.Dispose()Control.RaiseBubbleEvent(object, EventArgs)Control.OnBubbleEvent(object, EventArgs)Control.AddedControl(Control, int)Control.CreateControlCollection()Control.CreateChildControls()Control.ResolveUrl(string)Control.ResolveClientUrl(string)Control.FindControl(string)Control.FindControl(string, int)Control.GetDesignModeState()Control.HasControls()Control.IsLiteralContent()Control.EnsureChildControls()Control.RemovedControl(Control)Control.SetDesignModeState(IDictionary)Control.SetRenderMethodDelegate(RenderMethod)Control.ClientIDModeControl.ClientIDControl.ClientIDSeparatorControl.ContextControl.AdapterControl.DesignModeControl.EventsControl.IDControl.IsChildControlStateClearedControl.EnableViewStateControl.ViewStateModeControl.IsViewStateEnabledControl.NamingContainerControl.IdSeparatorControl.LoadViewStateByIDControl.PageControl.RenderingCompatibilityControl.TemplateControlControl.ParentControl.TemplateSourceDirectoryControl.AppRelativeTemplateSourceDirectoryControl.SiteControl.VisibleControl.UniqueIDControl.HasChildViewStateControl.ControlsControl.ValidateRequestModeControl.ViewStateControl.ViewStateIgnoresCaseControl.ChildControlsCreatedControl.IsTrackingViewStateControl.DisposedControl.DataBindingControl.InitControl.LoadControl.PreRenderControl.Unloadobject.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Constructors

C#
public RadSmartPasteButton()

Properties

Gets or sets the icon to be displayed on the SmartPasteButton when cancelling the smart paste operation. Default value is "x".

C#
public string CancelIcon { get; set; }

Gets the client events for the SmartPasteButton. Default value is null.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public SmartPasteButtonClientEvents ClientEvents { get; }

Gets the form fields collection of the SmartPasteButton control. Default value is null.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public SmartPasteButtonFormFieldsCollection FormFields { get; }

Gets or sets the icon to be displayed on the button by default. Default value is "paste-sparkle".

C#
public string Icon { get; set; }

Gets or sets the border radius of the SmartPasteButton. Options are Small, Medium, Large, Full. Default value is Medium.

C#
public SmartPasteButtonRounded Rounded { get; set; }

Gets or sets the headers to be included in the request to the LLM service. Default value is an empty string.

C#
[PersistenceMode(PersistenceMode.InnerProperty)]
public SmartPasteButtonService Service { get; }

Gets or sets the URL of the LLM service that will process the smart paste data. This is required for the SmartPasteButton to function. Default value is an empty string.

C#
public string ServiceUrl { get; set; }

Gets or sets the size of the SmartPasteButton. Options are Small, Medium, Large. Default value is Medium.

C#
public SmartPasteButtonSize Size { get; set; }
C#
protected override bool SupportsRenderingMode { get; }

Overrides: RadWebControl.SupportsRenderingMode

Gets or sets the text to be displayed on the SmartPasteButton. Default value is an empty string.

C#
public string Text { get; set; }

Methods

C#
protected override void DescribeClientEvents(IScriptDescriptor descriptor)
Parameters:descriptorIScriptDescriptor

Overrides: RadWebControl.DescribeClientEvents(IScriptDescriptor)