<%@ Page Language="vb" AutoEventWireup="true" CodeFile="DefaultVB.aspx.vb" Inherits="Telerik.Web.Examples.Spell.SpellcheckValidator.DefaultVB" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head runat="server">
<title>Telerik ASP.NET Example</title>
<link rel="Stylesheet" href="Styles.css" />
</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-narrow">
<asp:ValidationSummary ID="ValidationSummary1" runat="server" CssClass="valsum">
</asp:ValidationSummary>
<telerik:SpellCheckValidator runat="server" ID="SpellCheckValidator1" ControlToValidate="RadSpell1"
ErrorMessage="Please run a spell check to ensure the quality of the text!" Display="Dynamic">
</telerik:SpellCheckValidator>
<telerik:RadSpell RenderMode="Lightweight" ID="RadSpell1" runat="server" ControlToCheck="RadEditor1" ButtonType="PushButton"
Style="display: none;"></telerik:RadSpell>
<script type="text/javascript">
//The default command is overriden to integrate the standalone RadSpell and SpellCheckValidator controls
Telerik.Web.UI.Editor.CommandList.AjaxSpellCheck = function (commandName, editor) {
var spell = $find("<%=RadSpell1.ClientID %>");
spell.startSpellCheck();
return false;
}
</script>
<telerik:RadEditor RenderMode="Lightweight" runat="server" ID="RadEditor1" Width="500px" Height="200px" EditModes="Design"
ContentAreaCssFile="Styles.css">
<Tools>
<telerik:EditorToolGroup>
<telerik:EditorTool Name="Bold"></telerik:EditorTool>
<telerik:EditorTool Name="Italic"></telerik:EditorTool>
<telerik:EditorTool Name="Underline"></telerik:EditorTool>
<telerik:EditorTool Name="InsertLink"></telerik:EditorTool>
<telerik:EditorTool Name="Unlink"></telerik:EditorTool>
<telerik:EditorTool Name="AjaxSpellCheck"></telerik:EditorTool>
</telerik:EditorToolGroup>
</Tools>
<Content>
Somee exemple misspelld content for the post.
</Content>
</telerik:RadEditor>
<telerik:RadButton RenderMode="Lightweight" ID="RadButton1" runat="server" Text="Submit">
</telerik:RadButton>
</div>
</form>
</body>
</html>