New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial
View Template
The template of the view content. It can be a string or a Kendo Template.
ASP.NET
<telerik:RadAIPrompt runat="server" ID="RadAIPrompt1" Width="400px">
<Views>
<telerik:AIPromptView Name="PromptView" Type="Prompt" />
<telerik:AIPromptView Name="CustomView" Type="Custom" ButtonIcon="pencil" ButtonText="Custom View" InitializeComponents="customFunction">
<ViewTemplate>
<div class='custom-view'>This is a custom view</div>
</ViewTemplate>
</telerik:AIPromptView>
</Views>
</telerik:RadAIPrompt>
JavaScript
function customFunction() {
alert("View initialized")
}