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

Right-to-Left Support

The language input for web users can be left-to-right or right-to-left. The AIPrompt supports both input modes enabling you to properly render a spectrum of languages, including Hebrew, Chinese, and Arabic, thus making your app a truly global one and helping your localization efforts.

The WebForms AIPrompt component comes with built-in right-to-left (RTL) support and offers right-to-left rendering.

  • DefaultCS.aspx
  • DefaultCS.aspx.cs
  • script.js
  • style.css
<%@ 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">
        <div dir="rtl">
            <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 OnPromptRequest="onPromptRequest" />
            </telerik:RadAIPrompt>
        </div>
    </div>
    </form>
</body>
</html>

Support & Learning Resources

Find Assistance