Product Bundles
DevCraft
All Telerik .NET and Kendo UI JavaScript components and AI Tools in one package.
Kendo UI
Bundle of AI Tools plus four JavaScript UI libraries built natively for jQuery, Angular, React and Vue.
Build JavaScript UI
Javascript
Agent and App Development Solutions
Build. Accelerate. Govern.
AI-Ready Application Experiences
AI-Assisted SDLC
Agent Governance and Control
Telerik
Build modern .NET business apps
.Net Web
Desktop
Reporting and Documents
Cross-Platform
Additional Tools
Enhance the developer and designer experience
Testing & Mocking
CMS
Debugging
UI Tools
Free Tools
Support and Learning
Productivity and Design Tools
New to Telerik UI for ASP.NET AJAX? Download free 30-day trial
The WebForms AIPrompt supports a comprehensive set of events which enable you to provide fluent experience and smooth interaction with the component.
This demo shows how to handle the AIPrompt events and the available arguments.
<%@ Page Language="c#" CodeFile="DefaultCS.aspx.cs" Inherits="Telerik.Web.Demos.AIPrompt.Overview.DefaultCS" %> <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> <%@ Register TagPrefix="qsf" Namespace="Telerik.QuickStart" %> <!DOCTYPE html> <html xmlns='http://www.w3.org/1999/xhtml'> <head runat="server"> <title>Telerik ASP.NET Example</title> <script src="script.js"></script> <link href="style.css" rel="stylesheet" /> </head> <body> <form id="form1" runat="server"> <telerik:RadScriptManager runat="server" ID="RadScriptManager1" /> <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" /> <div class="demo-container size-medium flex-center"> <telerik:RadAIPrompt ID="RadAIPrompt1" runat="server" Width="450px"> <Views> <telerik:AIPromptView Type="Prompt" /> <telerik:AIPromptView Type="Output" /> <telerik:AIPromptView Type="Commands"> </telerik:AIPromptView> </Views> <PromptCommands> <telerik:ViewPromptCommand ID="Command1" Text="Simplify" Icon="min-width" /> <telerik:ViewPromptCommand ID="Command2" Text="Extend" Icon="arrows-left-right" /> </PromptCommands> <ClientEvents OnLoad="onLoad" OnPromptRequest="onPromptRequest" OnCommandExecute="onCommandExecute" OnOutputCopy="onOutputCopy" OnOutputRatingChange="onOutputRatingChange" /> </telerik:RadAIPrompt> </div> <qsf:EventLogConsole ID="EventLogConsole1" runat="server" AllowClear="true" Height="300px"></qsf:EventLogConsole> </form> </body> </html>