Jul 27, 2012, 4:25 PM
[OPEN] [#101] How can I highlight a MultiSelect to show its required field on the client?
For example with the Red squiggly line where the box border is Red.
<%@ Page Language="C#" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<script runat="server">
protected void Select(object sender, DirectEventArgs e)
{
// NOTE: DO SERVER SIDE WORK !!!
X.Msg.Alert("Server Side", "Client side validation passed !!!").Show();
}
</script>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>MultiSelect - Ext.NET Examples</title>
</head>
<body>
<form id="Form1" runat="server">
<ext:ResourceManager ID="ResourceManager1" runat="server" />
<h1>
MultiSelect
</h1>
<ext:Button ID="Button1" runat="server" OnDirectClick="Select" Text="Select" CausesValidation="false" AllowBlank="false" />
<br />
<ext:FormPanel ID="Panel1" runat="server" Border="false" Width="300" Height="250" Layout="FitLayout">
<Items>
<ext:MultiSelect ID="MultiSelect1" runat="server" SingleSelect="true" AllowBlank="false">
<Items>
<ext:ListItem Text="Item 1" Value="1" />
<ext:ListItem Text="Item 2" Value="2" />
<ext:ListItem Text="Item 3" Value="3" />
<ext:ListItem Text="Item 4" Value="4" />
<ext:ListItem Text="Item 5" Value="5" />
</Items>
</ext:MultiSelect>
</Items>
</ext:FormPanel>
</form>
</body>
</html>
Last edited by Daniil; Dec 29, 2012 at 6:15 AM.
Reason: [OPEN] [#101]