New to Telerik UI for ASP.NET AJAXStart a free 30-day trial

Properties

Updated on Feb 11, 2026

SmartPasteButton-specific properties to configure appearance, form fields, service integration, and client-side events.

Main Properties

NameReturn Type / Enum LinkDescription
CancelIconstringGets/Sets the icon displayed when cancelling the smart paste operation (default: x).
FormFieldsTelerik.Web.UI.SmartPasteButtonFormFieldsCollectionGets the collection of form fields/target controls for smart paste operations.
IconstringGets/Sets the icon displayed on the button by default (default: paste-sparkle).
RoundedTelerik.Web.UI.SmartPasteButtonRoundedGets/Sets the border radius of the button.
ServiceTelerik.Web.UI.SmartPasteButtonServiceGets/Sets the service configuration for the LLM integration.
ServiceUrlstringGets/Sets the URL of the LLM service. This is required for the SmartPasteButton to function.
SizeTelerik.Web.UI.SmartPasteButtonSizeGets/Sets the size of the button.
TextstringGets/Sets the text displayed on the button (default: empty string).

FormFields

The FormFields collection defines the target controls or form fields that the SmartPasteButton will populate. Each form field is represented by a SmartPasteButtonFormField object with the following properties:

PropertyTypeDescription
ControlIDstringGets/Sets the target Control/Element ID to be populated.
DescriptionstringGets/Sets the description for the form field. Used to supply extra information for LLMs (e.g., data type, format, constraints).
AllowedValuesstring[]Gets/Sets the list of allowed values as a string array. Guides the LLM to return constrained values. Note: Large lists increase input token count.

Example

ASP.NET
<telerik:RadSmartPasteButton runat="server" ID="RadSmartPasteButton1" ServiceUrl="https://your-llm-service.com/api">
    <FormFields>
        <telerik:SmartPasteButtonFormField ControlID="txtFirstName" Description="Customer's first name" />
        <telerik:SmartPasteButtonFormField ControlID="txtLastName" Description="Customer's last name" />
        <telerik:SmartPasteButtonFormField ControlID="ddlCountry" Description="Country of residence" AllowedValues="USA,Canada,Mexico" />
    </FormFields>
</telerik:RadSmartPasteButton>

Service

The Service property configures the LLM service integration for the SmartPasteButton. It exposes the following properties:

PropertyTypeDescription
UrlstringGets/Sets the URL of the LLM service. This is required for the control to function.
HeadersstringGets/Sets the headers to be included in the request to the LLM service.

Example

ASP.NET
<telerik:RadSmartPasteButton runat="server" ID="RadSmartPasteButton1">
    <Service Url="https://your-llm-service.com/api" Headers="Authorization: Bearer YOUR_TOKEN" />
</telerik:RadSmartPasteButton>

Next Steps